Skip to content

Commit 846a845

Browse files
DaanDeMeyerjohannbg
authored andcommitted
fix(install.d): add --verbose if KERNEL_INSTALL_VERBOSE=1
If KERNEL_INSTALL_VERBOSE=1, let's make sure dracut also produces extended output for debugging purposes.
1 parent e4f1dbc commit 846a845

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install.d/50-dracut.install

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ case "$COMMAND" in
5454
break
5555
fi
5656
done
57-
dracut -f ${noimageifnotneeded:+--noimageifnotneeded} "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION"
57+
58+
dracut -f \
59+
${noimageifnotneeded:+--noimageifnotneeded} \
60+
$([[ "$KERNEL_INSTALL_VERBOSE" == 1 ]] && echo --verbose) \
61+
"$BOOT_DIR_ABS/$INITRD" \
62+
"$KERNEL_VERSION"
5863
ret=$?
5964
;;
6065
remove)

0 commit comments

Comments
 (0)