]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu: Ensure ROOTFS path is absolute
authorSaul Wold <sgw@linux.intel.com>
Thu, 20 Feb 2014 20:55:09 +0000 (12:55 -0800)
committerSaul Wold <sgw@linux.intel.com>
Fri, 21 Feb 2014 04:06:23 +0000 (20:06 -0800)
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>
scripts/runqemu

index 0db7ad63cabce01d52355ad9446bce613d9da5cb..57c5de4ca048c9c6cc8cde14f28716348ebb0e0a 100755 (executable)
@@ -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:"