On Tue, 16 Jul 2024 at 10:51, Luca Boccassi <bl...@debian.org> wrote: > > Hi, > > The Discoverable Partitions Specification defines a bunch of GUIDs that > allow auto-discovering the mount point of a GPT partition on boot. This > for example can be used to boot an image using a dracut or package > based initrd without the need of manually defining and maintaining > /etc/fstab. > > https://uapi-group.org/specifications/specs/discoverable_partitions_specification/ > > I want to add support for this to D-I. I don't see any drawbacks as > currently the generic "Linux data partition" GUID is used on every > partition (apart from ESP and swap, which are already tagged with DPS- > compliant GUIDs), which doesn't tell you anything useful since it's the > same everywhere. Tools that can read and use partition types already > understand DPS GUIDs (fdisk, gdisk, blkid, etc). > > This is simple to do with a partman commit.d script. The question is > where to ship this script from, are there any preferences? > I can add a new partman-dps package, or I can add the script to > partman-base for example. There are no questions or templates or > anything, it just runs unconditionally if the disk uses GPT and the > system is Linux. > > This is the partman-base MR: > > https://salsa.debian.org/installer-team/partman-base/-/merge_requests/9 > > This is the standalone package: > > https://salsa.debian.org/bluca/partman-dps > > Any preferences?
pham on IRC suggested that partman-target would be a better fit, so I opened an alternative MR there too: https://salsa.debian.org/installer-team/partman-target/-/merge_requests/3 Also I have chosen commit.d, is that the right hook or would finish.d be better? The requirement is that the partitions are created in the partition table and the mount point is known