dracut-functions.sh: bail out, if $initdir is not set

master
Harald Hoyer 2012-07-09 10:02:04 +02:00
parent 56ed92922e
commit 593b315c70
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,11 @@ if ! type dinfo >/dev/null 2>&1; then
dlog_init
fi

if ! [[ $initdir ]]; then
dfatal "initdir not set"
exit 1
fi

# export standard hookdirs
[[ $hookdirs ]] || {
hookdirs="cmdline pre-udev pre-trigger netroot "