--rootfs option for geninitrd
Paweł Zuzelski
z at xatka.net
Fri Jun 5 13:16:25 CEST 2009
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
More information about the pld-devel-en
mailing list