Patchwork runqemu: Use readlink instead of realpath

login
register
mail settings
Submitter Saul Wold
Date Feb. 25, 2014, 6:30 p.m.
Message ID <1393353047-23946-1-git-send-email-sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/67433/
State Accepted
Commit e47afff7d812c74f8091d85facfdf34d6a1b698e
Headers show

Comments

Saul Wold - Feb. 25, 2014, 6:30 p.m.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Khem Raj - Feb. 25, 2014, 6:41 p.m.
On Tue, Feb 25, 2014 at 10:30 AM, Saul Wold <sgw@linux.intel.com> wrote:
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
> ---
>  scripts/runqemu | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/runqemu b/scripts/runqemu
> index 57c5de4..573def1 100755
> --- a/scripts/runqemu
> +++ b/scripts/runqemu
> @@ -464,7 +464,7 @@ if [ -z "$ROOTFS" -a "x$FSTYPE" != "xvmdk" ]; then
>  fi
>  # ROOTFS is now set for all cases, now expand it to be an absolute path, it should exist at this point
>
> -ROOTFS=`realpath $ROOTFS`
> +ROOTFS=`readlink -f $ROOTFS`

this is much better

Patch

diff --git a/scripts/runqemu b/scripts/runqemu
index 57c5de4..573def1 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -464,7 +464,7 @@  if [ -z "$ROOTFS" -a "x$FSTYPE" != "xvmdk" ]; then
 fi
 # ROOTFS is now set for all cases, now expand it to be an absolute path, it should exist at this point
 
-ROOTFS=`realpath $ROOTFS`
+ROOTFS=`readlink -f $ROOTFS`
 
 echo ""
 echo "Continuing with the following parameters:"