I would like to apply following patch to geninitrd:

Index: geninitrd
===================================================================
--- geninitrd   (wersja 10371)
+++ geninitrd   (kopia robocza)
@@ -52,7 +52,8 @@
        echo "       [--with-bootsplash] [--without-bootsplash]"
        echo "       [--with-fbsplash] [--without-fbsplash]"
        echo "       [--with-fbcondecor] [--without-fbcondecor]"
-       echo "       [--lvmtoolsversion=1|2] [--with-udev] [--without-udev]"
+       echo "       [--lvmtoolsversion=1|2] [--with-rootfs=<fs>]"
+       echo "       [--with-udev] [--without-udev]"
        echo "       [--with-suspend] [--without-suspend]"
        echo "       [--with-tuxonice] [--without-tuxonice]"
        echo "       [--without-dmraid] [--without-multipath]"
@@ -881,6 +882,13 @@
                LVMTOOLSVERSION=$2
                shift
                ;;
+       --rootfs=*)
+               ROOTFS=${1#--rootfs=}
+               ;;
+       --rootfs)
+               ROOTFS=$2
+               shift
+               ;;
        --without-udev)
                USE_UDEV=no
                ;;
@@ -1082,6 +1090,7 @@
 fi
 
 find_root "$fstab" || exit
+rootFs=${ROOTFS:-$rootFs}
 debug "Using $rootdev as device for rootfs"
 
 find_modules_for_devpath "$rootdev"

Sometimes I need to generate initrd for other machine with different
root filesystem type. It would be easier to pass --rootfs option to
initrd then create "fake" fstab.

Any comments?

-- 
Best regards,
Paweł Zuzelski
_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to