Browse Source

dracut-functions: fixed inst() for mkinitrd compat

master
Harald Hoyer 16 years ago
parent
commit
9541165d33
  1. 6
      dracut-functions

6
dracut-functions

@ -264,7 +264,11 @@ inst() { @@ -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

Loading…
Cancel
Save