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]

(From OE-Core rev: 5722be0ddda4ec3c96c06b425e5c7e0194326253)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Saul Wold 2014-02-20 12:55:09 -08:00 committed by Richard Purdie
parent dffa543035
commit 425dc69bc7
1 changed files with 3 additions and 1 deletions

View File

@ -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:"