This allows for setting the ROOT_IMAGE name on the kernel command line
[YOCTO #5387]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
case $arg in
root=*)
ROOT_DEVICE=$optarg ;;
+ rootimage=*)
+ ROOT_IMAGE=$optarg ;;
rootfstype=*)
modprobe $optarg 2> /dev/null ;;
LABEL=*)
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