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.
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"