Skip to content

Commit

Permalink
zfsbootmenu-init: fix hook skipping for *all* stages
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford committed Dec 3, 2023
1 parent 33ed9a4 commit bcf4afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfsbootmenu/libexec/zfsbootmenu-init
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if zbm_skip_hooks="$( get_zbm_arg zbm.skip_hooks )" && [ -n "${zbm_skip_hooks}"
for _skip in "${zbm_skip_hooks[@]}"; do
[ -n "${_skip}" ] || continue

for _hook in /libexec/hooks/{early-setup,setup,teardown}.d/*; do
for _hook in /libexec/hooks/*.d/*; do
[ -e "${_hook}" ] || continue
if [ "${_skip}" = "${_hook##*/}" ]; then
zinfo "Disabling hook: ${_hook}"
Expand Down

0 comments on commit bcf4afb

Please sign in to comment.