From: Harald Hoyer Date: Wed, 22 Feb 2012 15:11:19 +0000 (+0100) Subject: dracut.sh: do not install some files in installkernel X-Git-Tag: 017~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14c47b0ee41b80925aa5a1469a3c4e7109edcdf1;p=thirdparty%2Fdracut.git dracut.sh: do not install some files in installkernel /etc/cmdline.d /etc/fstab --- diff --git a/dracut.sh b/dracut.sh index ba49fe3b9..8208c926e 100755 --- a/dracut.sh +++ b/dracut.sh @@ -672,7 +672,9 @@ else done fi -mkdir -p "${initdir}/etc/cmdline.d" +if [[ $kernel_only != yes ]]; then + mkdir -p "${initdir}/etc/cmdline.d" +fi mods_to_load="" # check all our modules to see if they should be sourced. @@ -737,20 +739,20 @@ while pop include_src src && pop include_target tgt; do fi done -for item in $install_items; do - dracut_install -o "$item" -done -unset item +if [[ $kernel_only != yes ]]; then + for item in $install_items; do + dracut_install -o "$item" + done + unset item -while pop fstab_lines line; do - echo "$line 0 0" >> "${initdir}/etc/fstab" -done + while pop fstab_lines line; do + echo "$line 0 0" >> "${initdir}/etc/fstab" + done -for f in $add_fstab; do - cat $f >> "${initdir}/etc/fstab" -done + for f in $add_fstab; do + cat $f >> "${initdir}/etc/fstab" + done -if [[ $kernel_only != yes ]]; then # make sure that library links are correct and up to date for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do [[ -f $f ]] && inst_simple "$f"