Public bug reported:

Upstream GRUB sets root=ZFS=rpool/path/to/rootfs by default. By
supporting that syntax (while retaining the existing support for
backwards compatibility), we can work out-of-the-box.

I've attached a patch for zfs-initramfs to implement this. Note that
since this is creating a new file in the debian/directory, you have to
apply this patch to the packaging, not put the file in debian/patches/.
If you put the file in debian/patches, debuild will choke.

The patch has two parts. One, creating conf.d/zfs to set BOOT=zfs. This
avoids the need to set boot=zfs on the Linux command-line in the GRUB
configuration. The second part is a set of changes to scripts/zfs which
grabs the ZFS= part from root= and stores that into ZFS_BOOTFS and
ZFS_RPOOL.

Submitted upstream a year ago as: https://github.com/zfsonlinux/pkg-
zfs/pull/140

** Affects: zfs-initramfs (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "grub-native-root-syntax.patch"
   
https://bugs.launchpad.net/bugs/1530953/+attachment/4543931/+files/grub-native-root-syntax.patch

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

Title:
  Support GRUB's native root=ZFS=

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-initramfs/+bug/1530953/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to