From 853ef22eefde2e77b6805d64bb0f7c96adf65ebb Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Thu, 18 Jan 2018 23:42:42 -0600 Subject: [PATCH] rootfs: Change realpath for readlink readlink is more common than realpath Signed-off-by: Jose Carlos Venegas Munoz --- rootfs-builder/rootfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs-builder/rootfs.sh b/rootfs-builder/rootfs.sh index 858b441ad9..be5312865c 100755 --- a/rootfs-builder/rootfs.sh +++ b/rootfs-builder/rootfs.sh @@ -7,7 +7,7 @@ set -e script_name="${0##*/}" -script_dir="$(dirname $(realpath -s $0))" +script_dir="$(dirname $(readlink -f $0))" ROOTFS_DIR=${ROOTFS_DIR:-${PWD}/rootfs} AGENT_VERSION=${AGENT_VERSION:-master} GO_AGENT_PKG=${GO_AGENT_PKG:-github.com/kata-containers/agent}