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:
600131f
)
dracut-functions: fixed inst() for mkinitrd compat
author
Harald Hoyer
<harald@redhat.com>
Mon, 14 Sep 2009 13:53:55 +0000
(15:53 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Mon, 14 Sep 2009 13:53:55 +0000
(15:53 +0200)
dracut-functions
patch
|
blob
|
history
diff --git
a/dracut-functions
b/dracut-functions
index
acc9da9
..
65cd4cb
100755
(executable)
--- a/
dracut-functions
+++ b/
dracut-functions
@@
-264,7
+264,11
@@
inst() {
derror "inst only takes 1 or 2 or 3 arguments"
exit 1
fi
- [[ "$2" = "$initdir" ]] && set $1 $3
+ if [[ $# = 3 ]]; then
+ [[ -z $initdir ]] && initdir=$2;
+ export initdir
+ set $1 $3
+ fi
for x in inst_symlink inst_script inst_binary inst_simple; do
$x "$@" && return 0
done