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

Issue 3249008: Copying .subversion directory into the chroot, (Closed)

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

Description

Copying .subversion directory into the chroot, so that the original users' subversion access permissions are preserved inside the chroot Change-Id: I486070b3c1a2dda169ae0a95982ba693574e001b BUG= TEST=

Patch Set 1 #

Patch Set 2 : changed the cp -rp to mount --bind #

Total comments: 8

Patch Set 3 : fixed code review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M enter_chroot.sh View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Raja Aluri
10 years, 3 months ago (2010-08-30 21:48:04 UTC) #1
Mandeep Singh Baines
LGTM aluri@chromium.org (aluri@chromium.org) wrote: > Reviewers: Mandeep Singh Baines, sosa, > > Description: > Copying ...
10 years, 3 months ago (2010-08-30 22:32:40 UTC) #2
sosa
Isn't this doing the same thing? http://codereview.chromium.org/3277006/show
10 years, 3 months ago (2010-08-30 22:37:00 UTC) #3
Raja Aluri
PTAL. Copied ellyjone's code from http://codereview.chromium.org/3277006/show except that, I do a mkdir -p and 'die' ...
10 years, 3 months ago (2010-08-31 00:18:32 UTC) #4
sosa
nits o/w lgtm http://codereview.chromium.org/3249008/diff/5001/6001 File enter_chroot.sh (right): http://codereview.chromium.org/3249008/diff/5001/6001#newcode266 enter_chroot.sh:266: if [ -z "$(mount | grep ...
10 years, 3 months ago (2010-08-31 00:36:35 UTC) #5
davidjames
http://codereview.chromium.org/3249008/diff/5001/6001 File enter_chroot.sh (right): http://codereview.chromium.org/3249008/diff/5001/6001#newcode262 enter_chroot.sh:262: if [[ -d "$HOME/.subversion" ]]; then [[ is a ...
10 years, 3 months ago (2010-08-31 01:06:54 UTC) #6
Raja Aluri
10 years, 3 months ago (2010-08-31 01:40:36 UTC) #7
http://codereview.chromium.org/3249008/diff/5001/6001
File enter_chroot.sh (right):

http://codereview.chromium.org/3249008/diff/5001/6001#newcode262
enter_chroot.sh:262: if [[ -d "$HOME/.subversion" ]]; then
On 2010/08/31 01:06:54, davidjames wrote:
> [[ is a bashism. Better to use single [ which works in dash.

Done.

http://codereview.chromium.org/3249008/diff/5001/6001#newcode266
enter_chroot.sh:266: if [ -z "$(mount | grep -F "on $MOUNTED_PATH ")" ]
On 2010/08/31 00:36:35, sosa wrote:
> "; then" rather than waste a new line / tab

Done.

http://codereview.chromium.org/3249008/diff/5001/6001#newcode268
enter_chroot.sh:268: mkdir -p "${FLAGS_chroot}/home/${USER}/.subversion"
On 2010/08/31 01:06:54, davidjames wrote:
> Couldn't this just be mkdir -p "$MOUNTED_PATH" ?

Done.

http://codereview.chromium.org/3249008/diff/5001/6001#newcode269
enter_chroot.sh:269: sudo mount --bind $HOME/.subversion "$MOUNTED_PATH" || \
On 2010/08/31 00:36:35, sosa wrote:
> quotes around var

Done.

Powered by Google App Engine
This is Rietveld 408576698