Skip to contentSkip to conversation

poky-qemu fix for nfs pathnames, v2

PATCH Applied Scott Garman 2 participants 3 messages Feb 24, 2011 – Feb 25, 2011

lore
Share & tools
lore
#0 lore raw

cover poky-qemu fix for nfs pathnames, v2

From: Scott Garman <[email protected]>

[Patch respun for whitespace issues]

This pull request includes a fix for bug #743, which allows nfs directories to be specified which contain an -image- substring in them.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: sgarman/poky-qemu-dirname-fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/poky-qemu-dirname-fix

Thanks,
Scott Garman <[email protected]>
---

Scott Garman (1):
poky-qemu: handle cases where an nfs directory contains -image-

 scripts/poky-qemu |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.4
#1 lore raw

PATCH 1/1 poky-qemu: handle cases where an nfs directory contains -image-

From: Scott Garman <[email protected]>

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]

---
 scripts/poky-qemu |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
scripts/poky-qemu +6 -0
index cb08f27..7a5e8a7 100755
@@ -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"
Signature · 1 line
1.7.4
Applied
#2 lore raw
In reply to Scott Garman
Quoted 16 lines · Scott Garman

From: Scott Garman<[email protected]>

[Patch respun for whitespace issues]

This pull request includes a fix for bug #743, which allows nfs directories to be specified which contain an -image- substring in them.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: sgarman/poky-qemu-dirname-fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/poky-qemu-dirname-fix

Thanks,
Scott Garman<[email protected]>
---

Quoted 6 lines

Scott Garman (1):
poky-qemu: handle cases where an nfs directory contains -image-

  scripts/poky-qemu |    6 ++++++
  1 files changed, 6 insertions(+), 0 deletions(-)

Merged into Master

Thanks
Sau!