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
This commit is contained in:
Chris Sosa 2010-11-12 10:54:25 -08:00
parent 51484a96e9
commit c60e567799

View File

@ -139,8 +139,10 @@ if [ ${FLAGS_most_recent} -eq ${FLAGS_TRUE} ] ; then
FLAGS_from="$(./get_latest_image.sh --board="${FLAGS_board}")" FLAGS_from="$(./get_latest_image.sh --board="${FLAGS_board}")"
fi fi
# Turn path into an absolute path. # Turn paths into absolute paths.
FLAGS_from=`eval readlink -f ${FLAGS_from}` 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. # Perform desired operation.
if [ ${FLAGS_unmount} -eq ${FLAGS_TRUE} ] ; then if [ ${FLAGS_unmount} -eq ${FLAGS_TRUE} ] ; then