mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c9ed41a313
commit
d591e696b2
+3
-3
@@ -71,7 +71,7 @@ process_filename() {
|
||||
usage
|
||||
fi
|
||||
elif [[ "x$EXT" == "xext2" || "x$EXT" == "xext3" ||
|
||||
"x$EXT" == "xjffs2" ]]; then
|
||||
"x$EXT" == "xjffs2" || "x$EXT" == "xbtrfs" ]]; then
|
||||
# A file ending in a supportted fs type is a rootfs image
|
||||
if [[ -z "$FSTYPE" || "$FSTYPE" == "$EXT" ]]; then
|
||||
FSTYPE=$EXT
|
||||
@@ -101,7 +101,7 @@ while [ $i -le $# ]; do
|
||||
usage
|
||||
fi
|
||||
;;
|
||||
"ext2" | "ext3" | "jffs2" | "nfs")
|
||||
"ext2" | "ext3" | "jffs2" | "nfs" | "btrfs")
|
||||
if [[ -z "$FSTYPE" || "$FSTYPE" == "$arg" ]]; then
|
||||
FSTYPE=$arg
|
||||
else
|
||||
@@ -317,7 +317,7 @@ if [[ -e "$ROOTFS" && -z "$FSTYPE" ]]; then
|
||||
# Extract the filename extension
|
||||
EXT=`echo $ROOTFS | awk -F . '{ print \$NF }'`
|
||||
if [[ "x$EXT" == "xext2" || "x$EXT" == "xext3" ||
|
||||
"x$EXT" == "xjffs2" ]]; then
|
||||
"x$EXT" == "xjffs2" || "x$EXT" == "xbtrfs" ]]; then
|
||||
FSTYPE=$EXT
|
||||
else
|
||||
echo "Note: Unable to determine filesystem extension for $ROOTFS"
|
||||
|
||||
Reference in New Issue
Block a user