aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2014-02-20 12:55:09 -0800
committerSaul Wold <sgw@linux.intel.com>2014-02-20 20:06:23 -0800
commit5722be0ddda4ec3c96c06b425e5c7e0194326253 (patch)
tree4f8c33441abb113c31f137d1af3dc29b9276c390 /scripts
parent5bb786241907bb0304edb25ac1d398b3ae7f3be0 (diff)
downloadopenembedded-core-5722be0ddda4ec3c96c06b425e5c7e0194326253.tar.gz
runqemu: Ensure ROOTFS path is absolute
There is a problem if a relative path is passed to the kernel for NFS usage that it will not correctly find it, so ensure that the ROOTFS path is absolute. [YOCTO #2807] Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 0db7ad63ca..57c5de4ca0 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -462,7 +462,9 @@ if [ -z "$ROOTFS" -a "x$FSTYPE" != "xvmdk" ]; then
error "Unable to determine default rootfs for MACHINE [$MACHINE]"
fi
fi
-# ROOTFS is now set for all cases
+# ROOTFS is now set for all cases, now expand it to be an absolute path, it should exist at this point
+
+ROOTFS=`realpath $ROOTFS`
echo ""
echo "Continuing with the following parameters:"