Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: mount_gpt_image.sh

Issue 4853001: Convert rootfs and stateful mountpts to absolute paths. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mount_gpt_image.sh
diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh
index 63dba3d8b62d755989b12512a2a5998659169f61..3156c1586e647f1d210f143fec47cf4aa9fb3bd6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698