Patchwork initrdscripts: Add rootimage option

login
register
mail settings
Submitter Saul Wold
Date Feb. 26, 2014, 7:21 a.m.
Message ID <1393399264-22367-1-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/67455/
State New
Headers show

Comments

Saul Wold - Feb. 26, 2014, 7:21 a.m.
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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 7e27f91..9e53a25 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -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