Skip to contentSkip to conversation

initrdscripts: Add rootimage option

PATCH New Saul Wold 1 participant 1 message Feb 26, 2014

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 initrdscripts: Add rootimage option

This allows for setting the ROOT_IMAGE name on the kernel command line

[YOCTO #5387]

---
 meta/recipes-core/initrdscripts/files/init-live.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/initrdscripts/files/init-live.sh +3 -1
index 7e27f91..9e53a25 100644
@@ -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
Signature · 1 line
1.8.3.1