From: Harald Hoyer Date: Mon, 9 Jul 2012 08:02:04 +0000 (+0200) Subject: dracut-functions.sh: bail out, if $initdir is not set X-Git-Tag: 021~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=593b315c700641496e89133918b97c1ad019c8ce;p=thirdparty%2Fdracut.git dracut-functions.sh: bail out, if $initdir is not set --- diff --git a/dracut-functions.sh b/dracut-functions.sh index d91e2a40c..3f5631676 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -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 "