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

Issue 1736025: Added restart_in_chroot_if_needed to common.sh. (Closed)

Created:
10 years, 7 months ago by dgarrett
Modified:
9 years, 7 months ago
Reviewers:
seano, sosa
CC:
chromium-os-reviews_chromium.org
Base URL:
http://src.chromium.org/git/chromiumos.git
Visibility:
Public.

Description

Added restart_in_chroot_if_needed to common.sh. Add restart_in_chroot_if_needed to common.sh, and modify the build scripts which referred to assert_inside_chroot to use it instead. The effect is that you don't ever have to explicitly enter_chroot.sh to build (still can, it work's fine). Update mod_image_for_test.sh to use restart_in_chroot_if_needed

Patch Set 1 #

Patch Set 2 : Fixed script I broke. #

Total comments: 1

Patch Set 3 : Reverted mod_image_for_test.sh and removed line from common.sh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -6 lines) Patch
M src/scripts/build_gpt.sh View 1 chunk +1 line, -1 line 0 comments Download
M src/scripts/build_image View 1 chunk +1 line, -1 line 0 comments Download
M src/scripts/build_tests.sh View 1 chunk +1 line, -1 line 0 comments Download
M src/scripts/common.sh View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/scripts/run_tests.sh View 1 chunk +1 line, -1 line 0 comments Download
M src/scripts/set_shared_user_password.sh View 1 chunk +1 line, -1 line 0 comments Download
M src/scripts/start_devserver View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
sosa
Overall this looks good, but some scripts outside the chroot call scripts by absolute path. ...
10 years, 7 months ago (2010-05-01 00:35:14 UTC) #1
dgarrett
This change should have no effect unless you are trying to do something that would ...
10 years, 7 months ago (2010-05-03 20:58:36 UTC) #2
dgarrett
Would this be an appropriate fix? # Equivalent to enter_chroot.sh -- <current command> exec $SCRIPTS_DIR/enter_chroot.sh ...
10 years, 7 months ago (2010-05-03 21:47:51 UTC) #3
sosa
Yes I think so. In this CL can you take the logic out for mod_image_for_test. ...
10 years, 7 months ago (2010-05-03 21:55:27 UTC) #4
sosa
10 years, 7 months ago (2010-05-04 22:52:56 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698