diff options
author | Saul Wold <sgw@linux.intel.com> | 2014-02-20 12:55:09 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-21 16:09:08 +0000 |
commit | 425dc69bc7b9ea0f8ca886c442e37bba4f76ec8f (patch) | |
tree | 992612b91b87251594878a843bd8de9ca0cd4a4c /scripts/runqemu | |
parent | dffa543035e66b5b67afbdff64ebba5772cfb1af (diff) | |
download | poky-425dc69bc7b9ea0f8ca886c442e37bba4f76ec8f.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]
(From OE-Core rev: 5722be0ddda4ec3c96c06b425e5c7e0194326253)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 4 |
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 | |||
462 | error "Unable to determine default rootfs for MACHINE [$MACHINE]" | 462 | error "Unable to determine default rootfs for MACHINE [$MACHINE]" |
463 | fi | 463 | fi |
464 | fi | 464 | fi |
465 | # ROOTFS is now set for all cases | 465 | # ROOTFS is now set for all cases, now expand it to be an absolute path, it should exist at this point |
466 | |||
467 | ROOTFS=`realpath $ROOTFS` | ||
466 | 468 | ||
467 | echo "" | 469 | echo "" |
468 | echo "Continuing with the following parameters:" | 470 | echo "Continuing with the following parameters:" |