From: Saul Wold Date: Wed, 26 Feb 2014 07:19:41 +0000 (+0200) Subject: initrdscripts: Add rootimage option X-Git-Tag: 2015-4~3536 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=00e3acde7910a5fb1d2e6b71187f2d9283319e71;p=openembedded-core.git initrdscripts: Add rootimage option This allows for setting the ROOT_IMAGE name on the kernel command line [YOCTO #5387] Signed-off-by: Saul Wold --- diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh index 7e27f91f9e..9e53a25a51 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