Currently module-setup.sh will give a warning for disabling dracut
squash module for fadump, which is misleading. Don't print such warning.
Signed-off-by: Kairui Song <kasong(a)redhat.com>
---
dracut-module-setup.sh | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index c7ac9e9..26d3c78 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -29,11 +29,12 @@ depends() {
fi
done
}
-
- if is_squash_available && ! is_fadump_capable; then
- _dep="$_dep squash"
- else
- dwarning "Required modules to build a squashed kdump image is
missing!"
+ if ! is_fadump_capable; then
+ if is_squash_available; then
+ _dep="$_dep squash"
+ else
+ dwarning "Required modules to build a squashed kdump image is
missing!"
+ fi
fi
if [ -n "$( find /sys/devices -name drm )" ] || [ -d /sys/module/hyperv_fb
]; then
--
2.23.0
Show replies by thread