summaryrefslogtreecommitdiff
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-02-26 09:19:41 +0200
committerSaul Wold <sgw@linux.intel.com>2014-02-28 11:32:10 +0200
commit00e3acde7910a5fb1d2e6b71187f2d9283319e71 (patch)
treec10114bd57093876f15a389e27ce80db081f8249 /meta/recipes-core/initrdscripts
parent33746924bea27e6f4d85898fe37d3e07d4317a3a (diff)
downloadopenembedded-core-00e3acde7910a5fb1d2e6b71187f2d9283319e71.tar.gz
openembedded-core-00e3acde7910a5fb1d2e6b71187f2d9283319e71.tar.bz2
openembedded-core-00e3acde7910a5fb1d2e6b71187f2d9283319e71.zip
initrdscripts: Add rootimage option
This allows for setting the ROOT_IMAGE name on the kernel command line [YOCTO #5387] Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh4
1 files changed, 3 insertions, 1 deletions
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