From: Daan De Meyer Date: Tue, 14 Jun 2022 14:44:01 +0000 (-0400) Subject: fix(install.d): add --verbose if KERNEL_INSTALL_VERBOSE=1 X-Git-Tag: 058~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=846a845375b8a9ea48741079d523e6b464950ea7;p=thirdparty%2Fdracut.git 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. --- diff --git a/install.d/50-dracut.install b/install.d/50-dracut.install index 70632ec7f..a81c41c95 100755 --- a/install.d/50-dracut.install +++ b/install.d/50-dracut.install @@ -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)