summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2011-06-16 17:58:39 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-30 20:56:36 +0100
commitd591e696b2516ab605cc829786e56f45e76c2cee (patch)
tree14cd5c05b158586d399c0799ee99689a0a49d11b /scripts/runqemu
parentc9ed41a3130549f3397b5325bf2e503c2186d1a7 (diff)
downloadpoky-d591e696b2516ab605cc829786e56f45e76c2cee.tar.gz
scripts/runqemu: enable btrfs
(From OE-Core rev: 45689bbd46b0bb8e66b7c0ff7cc3321e5eef5b5f) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index aa44070dbe..5aed25a7e5 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -71,7 +71,7 @@ process_filename() {
71 usage 71 usage
72 fi 72 fi
73 elif [[ "x$EXT" == "xext2" || "x$EXT" == "xext3" || 73 elif [[ "x$EXT" == "xext2" || "x$EXT" == "xext3" ||
74 "x$EXT" == "xjffs2" ]]; then 74 "x$EXT" == "xjffs2" || "x$EXT" == "xbtrfs" ]]; then
75 # A file ending in a supportted fs type is a rootfs image 75 # A file ending in a supportted fs type is a rootfs image
76 if [[ -z "$FSTYPE" || "$FSTYPE" == "$EXT" ]]; then 76 if [[ -z "$FSTYPE" || "$FSTYPE" == "$EXT" ]]; then
77 FSTYPE=$EXT 77 FSTYPE=$EXT
@@ -101,7 +101,7 @@ while [ $i -le $# ]; do
101 usage 101 usage
102 fi 102 fi
103 ;; 103 ;;
104 "ext2" | "ext3" | "jffs2" | "nfs") 104 "ext2" | "ext3" | "jffs2" | "nfs" | "btrfs")
105 if [[ -z "$FSTYPE" || "$FSTYPE" == "$arg" ]]; then 105 if [[ -z "$FSTYPE" || "$FSTYPE" == "$arg" ]]; then
106 FSTYPE=$arg 106 FSTYPE=$arg
107 else 107 else
@@ -317,7 +317,7 @@ if [[ -e "$ROOTFS" && -z "$FSTYPE" ]]; then
317 # Extract the filename extension 317 # Extract the filename extension
318 EXT=`echo $ROOTFS | awk -F . '{ print \$NF }'` 318 EXT=`echo $ROOTFS | awk -F . '{ print \$NF }'`
319 if [[ "x$EXT" == "xext2" || "x$EXT" == "xext3" || 319 if [[ "x$EXT" == "xext2" || "x$EXT" == "xext3" ||
320 "x$EXT" == "xjffs2" ]]; then 320 "x$EXT" == "xjffs2" || "x$EXT" == "xbtrfs" ]]; then
321 FSTYPE=$EXT 321 FSTYPE=$EXT
322 else 322 else
323 echo "Note: Unable to determine filesystem extension for $ROOTFS" 323 echo "Note: Unable to determine filesystem extension for $ROOTFS"