Skip to content

Commit 7aef440

Browse files
committed
add initrd check to the ugrd installkernel hook
Signed-off-by: Zen <[email protected]>
1 parent 63dcd5b commit 7aef440

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hooks/installkernel/51-ugrd.install

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ main() {
2424
# re-define for subst to work
2525
[[ -n ${NOCOLOR+yes} ]] && NOCOLOR=
2626

27+
# Exit if ugrd is not the INSTALLKERNEL_INITRD_GENERATOR
28+
[[ ${INSTALLKERNEL_INITRD_GENERATOR} == "ugrd" ]] || exit 0
29+
2730
# do nothing if somehow ugrd is not installed
2831
[[ -x $(command -v ugrd) ]] || { ewarn "ugrd is not installed" && exit 0 ; }
2932

0 commit comments

Comments
 (0)