make bzip2 optional

master
Harald Hoyer 2012-02-25 17:22:02 +01:00
parent cf38fc7389
commit b7ddf6c1d8
3 changed files with 9 additions and 3 deletions

View File

@ -65,7 +65,6 @@ Obsoletes: dracut-kernel < 005
Provides: dracut-kernel = %{version}-%{release}

Requires: bash
Requires: bzip2
Requires: coreutils
Requires: cpio
Requires: filesystem >= 2.1.0

View File

@ -100,8 +100,15 @@ install() {
# remove unnecessary files
rm -f "${initdir}${kbddir}/consoletrans/utflist"
find "${initdir}${kbddir}/" -name README\* -delete
find "${initdir}${kbddir}/" -name '*.gz' -print -quit \
| while read line; do
dracut_install gzip
done

dracut_install gzip bzip2
find "${initdir}${kbddir}/" -name '*.bz2' -print -quit \
| while read line; do
dracut_install bzip2
done
}

install_local_i18n() {

View File

@ -17,7 +17,7 @@ install() {
dracut_install tar gzip dd
dracut_install -o cpio xz
# TODO: make this conditional on a cmdline flag / config option
# dracut_install -o bzip2
dracut_install -o bzip2
inst "$moddir/img-lib.sh" "/lib/img-lib.sh"
}