Skip to contentSkip to conversation

runqemu: Use readlink instead of realpath

PATCH In review Saul Wold 2 participants 2 messages Feb 25, 2014

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 runqemu: Use readlink instead of realpath

---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu +1 -1
index 57c5de4..573def1 100755
@@ -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:"
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 10 lines · Saul Wold
---
 scripts/runqemu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/runqemu +0 -0
index 57c5de4..573def1 100755

scripts/runqemu if [ -z "$ROOTFS" -a "x$FSTYPE" != "xvmdk" ]; then · line 467

Quoted 5 lines
scripts/runqemu +1 -1
@@ -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