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

Issue 6498001: enter_chroot: Only mount SSH auth socket when we need to. (Closed)

Created:
9 years, 10 months ago by rochberg
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

enter_chroot: Only mount SSH auth socket when we need to. Also refactors some cut-and-paste code BUG=11944 TEST=enter_chroot.sh with and without another enter_chroot running. Note that there are 0 or 1 mounts of the /tmp/ssh-.... directory. Check that /proc,/sys,/dev,$SSH_AUTH_SOCK,/dev/pts,/home/${USER}/trunk,/home/${USER}/.subversion are all mounted Change-Id: I9dada6f7f98d263345af29a5734c1c70709f6a1e Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=abaf1cc

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -42 lines) Patch
M enter_chroot.sh View 5 chunks +26 lines, -42 lines 5 comments Download

Messages

Total messages: 6 (0 generated)
rochberg
9 years, 10 months ago (2011-02-10 23:11:53 UTC) #1
Elly Fong-Jones
LGTM. Can anush or someone that understands enter_chroot take a look at this too?
9 years, 10 months ago (2011-02-11 14:59:19 UTC) #2
rochberg
On 2011/02/11 14:59:19, Elly Jones wrote: > LGTM. Can anush or someone that understands enter_chroot ...
9 years, 10 months ago (2011-02-11 15:23:45 UTC) #3
dgarrett
LGTM with a couple of small nits. Over all, looks better and cleaner. Thanks! http://codereview.chromium.org/6498001/diff/1/enter_chroot.sh ...
9 years, 10 months ago (2011-02-11 21:07:50 UTC) #4
rochberg
(haven't yet pushed or uploaded---will do that when I'm around to pick up the pieces ...
9 years, 10 months ago (2011-02-11 22:28:56 UTC) #5
dgarrett
9 years, 10 months ago (2011-02-12 00:39:45 UTC) #6
It's good.

http://codereview.chromium.org/6498001/diff/1/enter_chroot.sh
File enter_chroot.sh (right):

http://codereview.chromium.org/6498001/diff/1/enter_chroot.sh#newcode143
enter_chroot.sh:143: local mounted_path="$(readlink -f
"${FLAGS_chroot}/$target")"
I think what happens to the quotes inside the $() confused me. You're right.

Powered by Google App Engine
This is Rietveld 408576698