projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56ed929
)
dracut-functions.sh: bail out, if $initdir is not set
author
Harald Hoyer
<harald@redhat.com>
Mon, 9 Jul 2012 08:02:04 +0000
(10:02 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 9 Jul 2012 08:02:04 +0000
(10:02 +0200)
dracut-functions.sh
patch
|
blob
|
history
diff --git
a/dracut-functions.sh
b/dracut-functions.sh
index
d91e2a4
..
3f56316
100755
(executable)
--- 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 "