[oe-commits] Richard Purdie : runqemu: Specify rootfstype to qemu to avoid QA warnings
git at git.openembedded.org
git at git.openembedded.org
Sat Feb 21 22:06:25 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: ad9f54a5014f2d997165d0cfd6ad7c05e62f315b
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ad9f54a5014f2d997165d0cfd6ad7c05e62f315b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sat Feb 21 07:57:16 2015 +0000
runqemu: Specify rootfstype to qemu to avoid QA warnings
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 at linuxfoundation.org>
---
scripts/runqemu-internal | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index a0a1e96..6594dc3 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -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
More information about the Openembedded-commits
mailing list