mirror of
git://git.yoctoproject.org/poky
synced 2026-10-02 05:51:03 +00:00
poky-qemu: handle cases where an nfs directory contains -image-
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>
This commit is contained in:
parent
1cf7d6c214
commit
0897b00452
@ -113,6 +113,12 @@ while [ $i -le $# ]; do
|
|||||||
if [ -z "$ROOTFS" ]; then
|
if [ -z "$ROOTFS" ]; then
|
||||||
if [ -f "$arg" ]; then
|
if [ -f "$arg" ]; then
|
||||||
process_filename $arg
|
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
|
else
|
||||||
ROOTFS=$arg
|
ROOTFS=$arg
|
||||||
LAZY_ROOTFS="true"
|
LAZY_ROOTFS="true"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user