Skip to contentSkip to conversation

poky-qemu fix for nfs pathnames

PATCH In review Scott Garman 1 participant 3 messages Feb 24, 2011

lore
Share & tools
lore
#0 lore raw

cover poky-qemu fix for nfs pathnames

From: Scott Garman <[email protected]>

Hi Saul,

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..d8c93c3 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
#2 lore raw
In reply to Scott Garman
Quoted 6 lines · Scott Garman

From: Scott Garman<[email protected]>

Hi Saul,

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

Sorry, this commit has whitespace issues. I will respin.

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center