From 14c47b0ee41b80925aa5a1469a3c4e7109edcdf1 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 22 Feb 2012 16:11:19 +0100 Subject: [PATCH] dracut.sh: do not install some files in installkernel /etc/cmdline.d /etc/fstab --- dracut.sh | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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" -- 2.47.3