Descriptionenter_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
Messages
Total messages: 6 (0 generated)
|