36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 846a845375b8a9ea48741079d523e6b464950ea7 Mon Sep 17 00:00:00 2001
|
|
From: Daan De Meyer <daan.j.demeyer@gmail.com>
|
|
Date: Tue, 14 Jun 2022 10:44:01 -0400
|
|
Subject: [PATCH] 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.
|
|
|
|
Reference:https://github.com/dracutdevs/dracut/commit/846a845375b8a9ea48741079d523e6b464950ea7
|
|
Conflict:NA
|
|
---
|
|
install.d/50-dracut.install | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/install.d/50-dracut.install b/install.d/50-dracut.install
|
|
index 70632ec7..a81c41c9 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)
|
|
--
|
|
2.23.0
|
|
|