initrdscripts: Add rootimage option

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

[YOCTO #5387]

(From OE-Core rev: 00e3acde7910a5fb1d2e6b71187f2d9283319e71)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Saul Wold
2014-02-26 09:19:41 +02:00
committed by Richard Purdie
parent ad30740b12
commit d9d6f01aa7

View 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