summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/poky-qemu6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu
index 1086c3df1e..c76b3ab7b6 100755
--- a/scripts/poky-qemu
+++ b/scripts/poky-qemu
@@ -113,6 +113,12 @@ while [ $i -le $# ]; do
if [ -z "$ROOTFS" ]; then
if [ -f "$arg" ]; then
process_filename $arg
+ elif [ -d "$arg" ]; then
+ # Handle the case where the nfsroot dir has -image-
+ # in the pathname
+ echo "Assuming $arg is an nfs rootfs"
+ FSTYPE=nfs
+ ROOTFS=$arg
else
ROOTFS=$arg
LAZY_ROOTFS="true"