Skip to content

Commit

Permalink
zfsbootmenu-init: fix bootfs warning logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Oct 5, 2023
1 parent 93791ad commit 000b241
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zfsbootmenu/libexec/zfsbootmenu-init
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,11 @@ unset _bootfs
if [ -n "${BOOTFS}" ]; then
export BOOTFS
echo "${BOOTFS}" > "${BASE}/bootfs"
elif [ -n "${zbm_prefer_pool}" ]; then
timed_prompt -m "Preferred pool $( colorize magenta "${zbm_prefer_pool}" ) missing bootfs property" \
-m "unable to automatically boot"
else
zwarn "bootfs pool property unset for all imported pools"
if [ -n "${zbm_prefer_pool}" ]; then
timed_prompt -m "Pool $( colorize magenta "${zbm_prefer_pool}" ) was preferred" \
-m "but no 'bootfs' property set, unable to automatically boot"
fi
fi

: > "${BASE}/initialized"
Expand Down

0 comments on commit 000b241

Please sign in to comment.