]> code.ossystems Code Review - openembedded-core.git/commitdiff
initrdscripts: Add rootimage option
authorSaul Wold <sgw@linux.intel.com>
Wed, 26 Feb 2014 07:19:41 +0000 (09:19 +0200)
committerSaul Wold <sgw@linux.intel.com>
Fri, 28 Feb 2014 09:32:10 +0000 (11:32 +0200)
This allows for setting the ROOT_IMAGE name on the kernel command line

[YOCTO #5387]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initrdscripts/files/init-live.sh

index 7e27f91f9e46816fd5af0cb474e762e5020027ed..9e53a25a519578265fa96524fbc284b5949feb44 100644 (file)
@@ -49,6 +49,8 @@ read_args() {
         case $arg in
             root=*)
                 ROOT_DEVICE=$optarg ;;
+            rootimage=*)
+                ROOT_IMAGE=$optarg ;;
             rootfstype=*)
                 modprobe $optarg 2> /dev/null ;;
             LABEL=*)
@@ -133,7 +135,7 @@ do
            mount | grep media
            echo "Available block devices"
            ls /dev/sd*
-           fatal "Cannot find rootfs.img file in /media/* , dropping to a shell "
+           fatal "Cannot find $ROOT_IMAGE file in /media/* , dropping to a shell "
       fi
       C=$(( C + 1 ))
   fi