Skip to content

Commit fa0e38f

Browse files
committed
zfsbootmenu-core.sh: do not cache unencrypted keysources
1 parent 89bb1d5 commit fa0e38f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zfsbootmenu/lib/zfsbootmenu-core.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,12 @@ be_keysource() {
17061706
return 1;
17071707
fi
17081708

1709+
if ! be_has_encroot "${keysrc}" >/dev/null 2>&1; then
1710+
zwarn "keysource ${keysrc} for ${fs} is not encrypted; ignoring"
1711+
echo ""
1712+
return 1;
1713+
fi
1714+
17091715
echo "${keysrc}"
17101716
return 0
17111717
}

0 commit comments

Comments
 (0)