#Linux Does someone understand how Lennart Poettering's Discoverable Partitions ...
David Culley @davidculley@hachyderm.io
#Linux Does someone understand how Lennart Poettering's Discoverable Partitions Specification¹ integrates with Logical Volume Manager (LVM)?
Poettering insists that I give my partitions very specific names so that systemd can auto-mount the partitions for me and `/etc/fstab` becomes obsolete, to name just one of the motivations/benefits. If I LUKS-encrypt my partitions, Poettering wants that I name my partitions either of these pre-defined names:²
- /dev/mapper/root
- /dev/mapper/usr
- /dev/mapper/home
- /dev/mapper/srv
- /dev/mapper/esp
- /dev/mapper/xbootldr
- /dev/mapper/swap
- /dev/mapper/root-verity
- /dev/mapper/root-verity-sig
- /dev/mapper/usr-verity
- /dev/mapper/usr-verity-sig
- /dev/mapper/tmp
- /dev/mapper/var
I can follow Poettering's thinking (even if you or I don't need to agree with it) … so long as nobody ever uses LVM.
If I add a second SSD to my computer, create just a single partition on it, LUKS-encrypt it and add a volume group on top of LUKS, which I then split into, say, three logical volumes: `/home`, `/var`, and `/var/log` to construct just a random example.
- Why should I name the underlying device mapper file `/dev/mapper/home` when there's more than `/home` on that volume group?
- If I named the device mapper file something arbitrary like `/dev/mapper/davids-lvm-container`, then LVM also wouldn't work with Poettering's Discoverable Partitions Specification. If I use LVM for everything, then none of the benefits motivated by Poettering work, even if I do as Poettering suggests. And if none of the benefits works anyway, then why should I bother using the names that Poettering suggests rather than the names I find intuitive, even if that means I have to keep `/etc/fstab` around and keep doing the things manually that everyone's always been doing manually anway?
My ability to follow Poettering's thinking falls apart when I pull LVM into the equation.
Does Poettering not use LVM (Logical Volume Manager)? Am I missing something?
If I could see any benefit in doing things the way Poettering suggests, I would do it. I just don't see the benefits (when using LVM at least).
¹ https://uapi-group.org/specifications/specs/discoverable_partitions_specification/
² https://man.archlinux.org/man/systemd.image-filter.7