Skip to content

Commit

Permalink
fix(install.d): add --verbose if KERNEL_INSTALL_VERBOSE=1
Browse files Browse the repository at this point in the history
If KERNEL_INSTALL_VERBOSE=1, let's make sure dracut also produces
extended output for debugging purposes.
  • Loading branch information
DaanDeMeyer authored and johannbg committed Jun 21, 2022
1 parent e4f1dbc commit 846a845
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.d/50-dracut.install
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ case "$COMMAND" in
break
fi
done
dracut -f ${noimageifnotneeded:+--noimageifnotneeded} "$BOOT_DIR_ABS/$INITRD" "$KERNEL_VERSION"

dracut -f \
${noimageifnotneeded:+--noimageifnotneeded} \
$([[ "$KERNEL_INSTALL_VERBOSE" == 1 ]] && echo --verbose) \
"$BOOT_DIR_ABS/$INITRD" \
"$KERNEL_VERSION"
ret=$?
;;
remove)
Expand Down

0 comments on commit 846a845

Please sign in to comment.