Merge #4 Make dracut-squash a weak dep

This commit is contained in:
Kairui Song 2021-01-10 19:18:23 +00:00
commit 24c6b3027f
2 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@ depends() {
modprobe -S $KDUMP_KERNELVER --dry-run $kmodule &>/dev/null || return 1
fi
done
# check that the dracut squash module is available
[ -d "$(dracut_module_path squash)" ] || return 1
}
if is_squash_available && ! is_fadump_capable; then

View File

@ -61,7 +61,7 @@ Requires(postun): systemd-units
Requires(pre): coreutils sed zlib
Requires: dracut >= 050
Requires: dracut-network >= 050
Requires: dracut-squash >= 050
Recommends: dracut-squash >= 050
Requires: ethtool
BuildRequires: make
BuildRequires: zlib-devel elfutils-devel glib2-devel bzip2-devel ncurses-devel bison flex lzo-devel snappy-devel