Support GRUB's native 'root=ZFS='

pull/230/head
Jan Houben 7 years ago
parent a967472d49
commit 711c40ae7e
No known key found for this signature in database
GPG Key ID: B7C6B271DEB42D74
  1. 2
      conf.sh
  2. 12
      src/zfs-utils/zfs-utils.initcpio.hook

@ -7,7 +7,7 @@ zfs_src_hash="1687f4041a990e35caccc4751aa736e8e55123b81d5f5a35b11916d9e580c23d"
zfs_bash_completion_hash="b60214f70ffffb62ffe489cbfabd2e069d14ed2a391fac0e36f914238394b540"
zfs_initcpio_install_hash="e33adabbe3f2f4866802c9d63c7810c7a42b4df2288d0cdd23376519b15b36e4"
zfs_initcpio_hook_hash="b5f87d1d1d10443d8919125a4c139d5f4c579ca4433b2905ee826bb01defa56a"
zfs_initcpio_hook_hash="3eb874cf2cbb6c6a0e1c11a98af54f682d6225667af944b43435aeabafa0112f"
# Notification address
email="jeezusjr@gmail.com"

@ -113,7 +113,17 @@ run_hook() {
# Wait 15 seconds for ZFS devices to show up
[ "${zfs_wait}" = "" ] && ZFS_WAIT="15" || ZFS_WAIT="${zfs_wait}"
[ "${root}" = "zfs" ] && mount_handler="zfs_mount_handler"
case ${root} in
# root=zfs
"zfs")
mount_handler="zfs_mount_handler"
;;
# root=ZFS=... syntax (grub)
"ZFS="*)
mount_handler="zfs_mount_handler"
ZFS_DATASET="${root#*[=]}"
;;
esac
case ${zfs} in
"")

Loading…
Cancel
Save