[Top][All Lists]

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

[bug #45709] Grub git master makes bad grub.cfg with btrfs raid of lvm v

From: James Harvey
Subject: [bug #45709] Grub git master makes bad grub.cfg with btrfs raid of lvm volumes
Date: Fri, 07 Aug 2015 23:37:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36

Follow-up Comment #4, bug #45709 (project grub):

Not a distribution specific bug.  Made a pure upstream git master build.

After grub-mkconfig -o /boot/grub/grub.cfg still includes:
### BEGIN /etc/grub.d/10_linux ###
insmod part_gpt
insmod part_gpt
insmod part_gpt
insmod lvm
insmod lvm
insmod lvm
echo    'Loading Linux linux ...'
linux   /original/boot/vmlinuz-linux root=/dev/mapper/disk1-terra1
/dev/mapper/disk3-terra3 ro rootflags=subvol=original
echo    'Loading initial ramdisk ...'

/usr/bin/grub-mkconfig:261 executes /etc/grub.d/10_linux
/etc/grub.d/10_linux:125 executes:
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} |
/usr/bin/grub-mkconfig:139 set: GRUB_DEVICE_BOOT="`${grub_probe}
--target=device /boot`"
and # grub-prove --target=device /boot
{{{ where all it needs is the first one due to the way btrfs raids work - you
just specify one of the devices }}}
/usr/share/grub/grub-mkconfig_lib:132 then causes the triplicate insmod
part_gpt via "grub-probe --device /dev/mapper/disk1-terra1
/dev/mapper/disk2-terra2 /dev/mapper/disk3-terra3 --target=partmap"
:139 then causes the triplicate insmod lvm via "grub-probe --device
/dev/mapper/disk1-terra1 /dev/mapper/disk2-terra2 /dev/mapper/disk3-terra3
:144 only makes a single insmod btrfs via "grub-probe --device
/dev/mapper/disk1-terra1 /dev/mapper/disk2-terra2 /dev/mapper/disk3-terra3
{{{ grub-probe knows to output one unique line here, where the two before it
outputs three triplicate lines }}}
:157 then causes the set
... via "grub-probe --device /dev/mapper/disk1-terra1 /dev/mapper/disk2-terra2
/dev/mapper/disk3-terra3 --target=compatibility_hint"
/etc/grub.d/10_linux:134 executes: linux ${rel_dirname}/${basename}
root=${linux_root_device_thisversion} ro ${args}
... with :189 setting linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
... with :49 setting: LINUX_ROOT_DEVICE=${GRUB_DEVICE}
which is set by /usr/bin/grub-mkconfig:135 as `${grub_probe} --target=device
... which outputs 3 lines just as it did with /boot
causing newlines in the kernel parameter line, preventing boot


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]