[Bug 1582811] Re: update-grub produces broken grub.cfg with ZFS mirror volume

Nick Niehoff 1582811 at bugs.launchpad.net
Thu Oct 24 16:56:32 UTC 2019


In Eoan a workaround for this seems to be to add head -1 to the
following line of /etc/grub.d/10_linux_zfs:

initrd_device=$(${grub_probe} --target=device "${boot_dir}")

to

initrd_device=$(${grub_probe} --target=device "${boot_dir}" | head -1)

This limits the initrd devices to 1, this is only a workaround for this
bug

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1582811

Title:
  update-grub produces broken grub.cfg with ZFS mirror volume

Status in grub2 package in Ubuntu:
  Confirmed
Status in grub2 source package in Xenial:
  Confirmed
Status in grub2 source package in Bionic:
  Confirmed
Status in grub2 source package in Disco:
  Confirmed
Status in grub2 source package in Eoan:
  Confirmed
Status in grub2 source package in Focal:
  Confirmed

Bug description:
  When running update-grub on Xenial with an mirrored ZFS root, broken
  grub.cfg files are consistently produced due to the root= line being
  formatted with block devices and a newline inserted.

  Specifically I get a line like so:
  	linux	/ROOT/mint-13@/boot/vmlinuz-4.6.0-040600-generic root=/dev/sdj1
  /dev/sdi3 ro   nomdmonddf nomdmonisw

  The newline is what's included.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1582811/+subscriptions



More information about the foundations-bugs mailing list