[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#980782: Info received (Bug#980782: Acknowledgement (os-prober: linux-boot-prober returning "root=/dev/dm-X" line instead of expected "root=UUID=[UUID128]))



Mirko Vogt <bugs-debian@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

Attachment: signature.asc
Description: PGP signature


Reply to: