diff options
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 6 |
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" |