[oe-commits] Saul Wold : runqemu: Ensure ROOTFS path is absolute

git at git.openembedded.org git at git.openembedded.org
Mon Feb 24 16:14:36 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 5722be0ddda4ec3c96c06b425e5c7e0194326253
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5722be0ddda4ec3c96c06b425e5c7e0194326253

Author: Saul Wold <sgw at linux.intel.com>
Date:   Thu Feb 20 12:55:09 2014 -0800

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 at linux.intel.com>

---

 scripts/runqemu | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 0db7ad6..57c5de4 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:"



More information about the Openembedded-commits mailing list