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

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

Package: os-prober

Version: 1.77

Severity: important

I noticed when running update-grub on Debian stable and testing, that

the resulting grub.cfg has lines as part of menuentres like:

"linux [..] root=/dev/dm-X"

for found linux installations on other block devices - in my case residing on LVs - ,instead of "root=UUID=[XXX]", which I'd have expected (and would favour).

This is due to `linux-boot-prober` calling `mapdevfs` defined in


`mapdevfs` does a simple `readlink` on the path given.

The other lines within the menuentry look fine, e.g.:

"set root='lvmid/XXXXXX/YYYYYY'"


"search [..] --set=root [UUID]"


Is this intentional and if so, why?

-- System Information:

Debian Release: bullseye/sid

  APT prefers testing

  APT policy: (900, 'testing')

Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads)

Kernel taint flags: TAINT_USER, TAINT_WARN

Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en

Shell: /bin/sh linked to /usr/bin/dash

Init: systemd (via /run/systemd/system)

LSM: AppArmor: enabled

Versions of packages os-prober depends on:

ii  grub-common  2.04-12

ii  libc6        2.31-9

os-prober recommends no packages.

os-prober suggests no packages.

-- no debconf information

Reply to: