dracut: install /lib* for kernel images

master
Harald Hoyer 2011-07-25 14:28:40 +02:00
parent 5a10d93d29
commit 6f09acf855
1 changed files with 9 additions and 0 deletions

9
dracut
View File

@ -503,6 +503,15 @@ if [[ $kernel_only != yes ]]; then

ln -sfn /run "$initdir/var/run"
ln -sfn /run/lock "$initdir/var/lock"
else
for d in lib "$libdir"; do
[[ -e "${initdir}${prefix}/$d" ]] && continue
if [ -h "/$d" ]; then
inst "/$d" "${prefix}/$d"
else
mkdir -m 0755 -p "${initdir}${prefix}/$d"
fi
done
fi

# check all our modules to see if they should be sourced.