mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 07:01:13 +02:00
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:
parent
51484a96e9
commit
c60e567799
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user