]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqemu: Specify rootfstype to qemu to avoid QA warnings
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Feb 2015 07:57:16 +0000 (07:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Feb 2015 22:04:26 +0000 (22:04 +0000)
With the change to ext4 filesystems for qemu, we get boot warnings from where
it tried to mount the ext4 fileystem as ext2 and ext3 first.

Avoid these by specifying the rootfs type directly on the kernel commandline
for ext* images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu-internal

index a0a1e96eb425e99e89ca6518b84c7ae8bc6ea29e..6594dc33ecdb8ccac59b14d05a8cca82630f5ec7 100755 (executable)
@@ -546,6 +546,10 @@ if [ "$MACHINE" = "qemush4" ]; then
     fi
 fi
 
+if [ "${FSTYPE:0:3}" = "ext" ]; then
+    KERNCMDLINE="$KERNCMDLINE rootfstype=$FSTYPE"
+fi
+
 if [ "$MACHINE" = "akita" ]; then
     QEMU=qemu-system-arm
     if [ "$FSTYPE" = "jffs2" ]; then