Remix.run Logo
s_ting765 2 hours ago

Partition autodiscovery is pretty neat. I did my archlinux install with it using this guide[0]. I have never touched /etc/fstab and I have had zero to worry about corrupting a boot with wrong fstab entries.

[0] https://walian.co.uk/arch-install-with-secure-boot-btrfs-tpm...

nubinetwork an hour ago | parent | next [-]

Btrfs and zfs don't need an fstab at all, they manage their mountable filesystems internally.

s_ting765 25 minutes ago | parent [-]

Sure. After you have located root and the boot partition which is what this addresses.

simoncion 14 minutes ago | parent | prev [-]

My searches for "systemd partition autodiscovery" lead me to [0]. In the table labeled "Table 1. Partition Type GUIDs", we find this in the Explanation section for 'SD_GPT_HOME'

  The first partition with this type UUID on the same disk as the root partition is mounted to /home/.
...you can't spread your /home and / partitions on separate disks and use this? In fact, it looks like you can't use this autodetection unless all of the partitions of interest (including your /boot/) are on the same disk? Seriously? There's also no indication that this works with LVM... which is -if true- is extremely inconvenient. The document at [1] only mentions LVM in passing, and [2] is Poettering saying "Fuck off, I don't want to support doing this with LVM".

Did I misread a document or fail to find a relevant one? If not, is this really limited to single-disk, "legacy" [3] configurations?

[0] <https://www.freedesktop.org/software/systemd/man/latest/syst...>

[1] <https://uapi-group.org/specifications/specs/discoverable_par...>

[2] <https://github.com/systemd/systemd/issues/1727>

[3] Yes, I'm considering any fixed-partition mechanism, whether MBR or GPT to be "legacy". The flexibility you get from LVM is sooooo nice.