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

Unified Diff: src/platform/cryptohome/bin/mount

Issue 490001: make cryptohome check a magic file to discern between chrome-login and slim-login (Closed)
Patch Set: mount error handlers already assumed common worked Created 11 years 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 | src/platform/cryptohome/lib/common » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/cryptohome/bin/mount
diff --git a/src/platform/cryptohome/bin/mount b/src/platform/cryptohome/bin/mount
index fc81088a2a125e586c8a3062158ac6b5cc4bdf29..ad3eec96f320c330305ac4af04f93f9f6d0f5d7c 100755
--- a/src/platform/cryptohome/bin/mount
+++ b/src/platform/cryptohome/bin/mount
@@ -13,8 +13,8 @@ function error_handler() {
if ! typeset -F cryptohome::log; then
echo "An error occurred before/in cryptohome." 1>&2
# Assume common is ok.
- /bin/mount -t tmpfs tmpfs /home/$DEFAULT_USER
- /bin/chown $DEFAULT_USER /home/$DEFAULT_USER
+ /bin/mount -t tmpfs tmpfs $DEFAULT_MOUNT_POINT
+ /bin/chown $DEFAULT_USER $DEFAULT_MOUNT_POINT
exit 1
fi
@@ -43,8 +43,8 @@ trap error_handler ERR;
function second_chance() {
cryptohome::log "new image creation failed (again)"
cryptohome::log "mounting tmpfs"
- $mount -t tmpfs tmpfs /home/$DEFAULT_USER
- $chown $DEFAULT_USER /home/$DEFAULT_USER
+ $mount -t tmpfs tmpfs $DEFAULT_MOUNT_POINT
+ $chown $DEFAULT_USER $DEFAULT_MOUNT_POINT
cryptohome::log "mount completed"
$exit 0
}
« no previous file with comments | « no previous file | src/platform/cryptohome/lib/common » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698