Mirko Vogt <bugs-deb...@nanl.de> writes: > Looking at /usr/share/initramfs-tools/scripts/local-top/lvm2 more > closely, passing a UUID also wouldn't trigger a `vgchange -ay` here. > But a path like /dev/mapper/X would. > So maybe the question is rather: how to make os-prober return a > "root=/dev/mapper/X" line instead of one containing a UUID(?)
The first thing that comes to mind is: For a given UUID run blkid, and exclude all lines that do not match the UUID count lines and error if there are duplicates (it probably already does this, and I think the risk of collisions most significant for short UUIDs like FAT has) as part of that regex, check for ^/dev/mapper, with that anchor use /dev/mapper/X for the truly unique UUID Cheers, Nicholas
signature.asc
Description: PGP signature