Skip to content

Commit

Permalink
Accept any root= value as valid
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Apr 2, 2022
1 parent 7982971 commit 9368171
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions zfsbootmenu/hook/zfsbootmenu-parse-commandline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,6 @@ fi

wait_for_zfs=0
case "${root}" in
""|zfsbootmenu|zfsbootmenu:)
# We'll take root unset, root=zfsbootmenu, or root=zfsbootmenu:
root="zfsbootmenu"
# shellcheck disable=SC2034
rootok=1
wait_for_zfs=1

zinfo "enabling menu after udev settles"
;;
zfsbootmenu:POOL=*)
# Prefer a specific pool for bootfs value, root=zfsbootmenu:POOL=zroot
root="${root#zfsbootmenu:POOL=}"
Expand All @@ -230,6 +221,14 @@ case "${root}" in

zinfo "preferring ${root} for bootfs"
;;
*)
root="zfsbootmenu"
# shellcheck disable=SC2034
rootok=1
wait_for_zfs=1

zinfo "enabling menu after udev settles"
;;
esac

# Pool preference ending in ! indicates a hard requirement
Expand Down

0 comments on commit 9368171

Please sign in to comment.