From f165864f0978b6566ac5a1f70292f68420c18425 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 9 Sep 2009 18:01:14 +0200 Subject: [PATCH] dracut-functions: make inst() mkinitrd compatible --- dracut-functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dracut-functions b/dracut-functions index 6009ace0e..acc9da909 100755 --- a/dracut-functions +++ b/dracut-functions @@ -260,10 +260,11 @@ inst_rules() { # general purpose installation function # Same args as above. inst() { - if (($# != 1 && $# != 2 )); then - derror "inst only takes 1 or 2 arguments" + if (($# != 1 && $# != 2 && $# != 3 )); then + derror "inst only takes 1 or 2 or 3 arguments" exit 1 fi + [[ "$2" = "$initdir" ]] && set $1 $3 for x in inst_symlink inst_script inst_binary inst_simple; do $x "$@" && return 0 done -- 2.47.3