Comment 0 for bug 1530953

Revision history for this message
Richard Laager (rlaager) wrote :

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