From: Thomas Renninger Date: Fri, 27 Sep 2013 18:18:59 +0000 (+0200) Subject: mkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy X-Git-Tag: 034~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbf338ff984b541f6de9359bbe3b07a40d8c2e44;p=thirdparty%2Fdracut.git mkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy -d is the SUSE mkinitrd version option to pass the rootfs. -s is to enable splash which may not be needed, but some callers rely on it, not to return an error. Make this wrapper compatible to it. Signed-off-by: Thomas Renninger --- diff --git a/mkinitrd-dracut.sh b/mkinitrd-dracut.sh index eeb6dda8b..f7b53f1a0 100755 --- a/mkinitrd-dracut.sh +++ b/mkinitrd-dracut.sh @@ -124,7 +124,7 @@ while (($# > 0)); do --preload) read_arg modname "$@" || shift $? basicmodules="$basicmodules $modname";; --image-version) img_vers=yes;; - --rootfs) read_arg rootfs "$@" || shift $? + --rootfs|-d) read_arg rootfs "$@" || shift $? dracut_args="${dracut_args} --filesystems $rootfs";; --nocompress) dracut_args="$dracut_args --no-compress";; --help) usage -n;; @@ -151,6 +151,7 @@ while (($# > 0)); do --looppath*) ;; --dsdt*) ;; --bootchart) ;; + -s) ;; --quiet|-q) quiet=1;; -b) read_arg boot_dir "$@" || shift $? if [ ! -d $boot_dir ];then