]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy
authorThomas Renninger <trenn@suse.de>
Fri, 27 Sep 2013 18:18:59 +0000 (20:18 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 4 Oct 2013 11:56:41 +0000 (13:56 +0200)
-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 <trenn@suse.de>
mkinitrd-dracut.sh

index eeb6dda8b36de18f2b2c6a4d5b74ac88b1d895db..f7b53f1a0ad3f8372282d3d0b85a50d5d9ace954 100755 (executable)
@@ -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