dracut.sh: check the value of --kver

https://bugzilla.redhat.com/show_bug.cgi?id=993327
master
Harald Hoyer 2013-08-06 16:56:42 +02:00
parent 5ae33613ab
commit aacdba2bdb
1 changed files with 5 additions and 0 deletions

View File

@ -478,6 +478,11 @@ if [[ $regenerate_all == "yes" ]]; then
((ret+=$?))
done
exit $ret
elif [[ $kernel ]]; then
if ! [[ -d /lib/modules/$kernel ]] && [[ $no_kernel != yes ]]; then
printf -- "Kernel version $kernel has no modules in /lib/modules/$kernel\n" >&2
exit 1
fi
fi

if ! [[ $kernel ]]; then