From c60e5677997769ef957d2f9f387f00c599647fc7 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Fri, 12 Nov 2010 10:54:25 -0800 Subject: [PATCH] Convert rootfs and stateful mountpts to absolute paths. Change-Id: Ib9b6b9ba7787fba337e71e4968a5c152b5a21e14 BUG=chromiumos:8885 TEST=Ran with default options and setting --rootfs_mountpt and stateful_mountpt to dirs in my current workig directory ... saw cleanup correctly on unmount Review URL: http://codereview.chromium.org/4853001 --- mount_gpt_image.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh index 63dba3d8b6..3156c1586e 100755 --- a/mount_gpt_image.sh +++ b/mount_gpt_image.sh @@ -139,8 +139,10 @@ if [ ${FLAGS_most_recent} -eq ${FLAGS_TRUE} ] ; then FLAGS_from="$(./get_latest_image.sh --board="${FLAGS_board}")" fi -# Turn path into an absolute path. +# Turn paths into absolute paths. FLAGS_from=`eval readlink -f ${FLAGS_from}` +FLAGS_rootfs_mountpt=`eval readlink -f ${FLAGS_rootfs_mountpt}` +FLAGS_stateful_mountpt=`eval readlink -f ${FLAGS_stateful_mountpt}` # Perform desired operation. if [ ${FLAGS_unmount} -eq ${FLAGS_TRUE} ] ; then