Bug#841680: I think /etc/grub.d/10_linux is the culprit

Manolo Díaz diaz.manolo at gmail.com
Sat Oct 22 16:37:10 UTC 2016


Dear Maintainer,

Lines from 66 to 68 read

if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
    || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
    || test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm; then

but 'uses_abstraction "${GRUB_DEVICE}" lvm' is false for my system, so
'LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}' is used instead.
Perhaps 'test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}"
lvm' should be evaluated before all other conditions. Please consider
the following patch:

--- a/10_linux	2016-10-16 11:46:00.000000000 +0200
+++ b/10_linux	2016-10-22 18:18:43.816598444 +0200
@@ -65,7 +65,7 @@
 # and mounting btrfs requires user space scanning, so force UUID in this case.
 if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
     || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
-    || test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm; then
+    || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
   LINUX_ROOT_DEVICE=${GRUB_DEVICE}
 else
   LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}


Best Regards,
-- 
Manolo Díaz



More information about the Pkg-grub-devel mailing list