]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-qemu: handle cases where an nfs directory contains -image-
authorScott Garman <scott.a.garman@intel.com>
Thu, 24 Feb 2011 19:23:28 +0000 (11:23 -0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 1 Mar 2011 11:46:41 +0000 (11:46 +0000)
Previously we mistakenly assumed that any argument which contained
*-image-* was the name of a rootfs image file. This allows nfs
directory paths to work correctly when they contain this substring.

This fixes [BUGID #743]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
scripts/poky-qemu

index 1086c3df1e1fe25f77aaa5577964f02f5f37047a..c76b3ab7b6e4fa7d4d8ced3e80d305deb616b091 100755 (executable)
@@ -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"