dracut-functions.sh: bail out, if $initdir is not set
authorHarald Hoyer <harald@redhat.com>
Mon, 9 Jul 2012 08:02:04 +0000 (10:02 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jul 2012 08:02:04 +0000 (10:02 +0200)
dracut-functions.sh

index d91e2a4..3f56316 100755 (executable)
@@ -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 "