done
unset item
-# make sure that library links are correct and up to date
-for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do
- [[ -e $f ]] && dracut_install "$f"
-done
-if ! ldconfig -r "$initdir"; then
- if [[ $UID = 0 ]]; then
- derror "ldconfig exited ungracefully"
- else
- derror "ldconfig might need uid=0 (root) for chroot()"
+
+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
+ [[ -e $f ]] && dracut_install "$f"
+ done
+ if ! ldconfig -r "$initdir"; then
+ if [[ $UID = 0 ]]; then
+ derror "ldconfig exited ungracefully"
+ else
+ derror "ldconfig might need uid=0 (root) for chroot()"
+ fi
fi
fi