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

Issue 5946003: Make restart_in_chroot_if_needed run against scripts that are symlinks (Closed)

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

Description

Make restart_in_chroot_if_needed run against scripts that are symlinks This reverts the main change of 84e72fab23c1359785f93685df6a3a45e7612d6e and undoes the breakage of scripts that are symlinks to ...chromeos/scripts..., but at the cost of re-breaking scripts under scripts/bin. The correct fix is a combination of removing all the symlinks to ...chromeos/scripts... and a more robust way of finding the chroot path of the executable. But that will have to wait until someone else does it next week or I return from vacation TEST=Ran all of these outside chroot. None seemed more broken than when run in the chroot. /setup_board --board=x86-generic, ./cros_workon list --all --board=x86-mario, ./start_devserver , ./build_image --help, ./build_packages --help, ./cros_upgrade_chroot --help, ./enter_chroot.sh , ./customize_rootfs --help, ./run_remote_tests.sh , ./verify_rootfs_chksum.sh , ./set_shared_user_password.sh BUG=n0ne Change-Id: Ic2b7484e53e6a977ed6ae675fe99e109b385020d Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=b4f6b3c

Patch Set 1 #

Total comments: 2

Patch Set 2 : $* -> "$@" #

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

Messages

Total messages: 5 (0 generated)
rochberg
10 years ago (2010-12-16 22:24:58 UTC) #1
anush
restarting in chroot hasn't been an officially supported workflow (though it works most of the ...
10 years ago (2010-12-16 22:42:28 UTC) #2
diandersAtChromium
See comment: seems like $* should still be "$@" http://codereview.chromium.org/5946003/diff/1/common.sh File common.sh (right): http://codereview.chromium.org/5946003/diff/1/common.sh#newcode239 common.sh:239: ...
10 years ago (2010-12-16 22:54:10 UTC) #3
Greg Spencer (Chromium)
LGTM, after addressing the thing below. http://codereview.chromium.org/5946003/diff/1/common.sh File common.sh (right): http://codereview.chromium.org/5946003/diff/1/common.sh#newcode239 common.sh:239: $CHROOT_TRUNK_DIR/src/scripts/$(basename $0) $* ...
10 years ago (2010-12-17 00:19:24 UTC) #4
Greg Spencer (Chromium)
10 years ago (2010-12-17 00:20:58 UTC) #5
> The correct fix is a combination of removing all the
> symlinks to ...chromeos/scripts... and a more robust way of finding
> the chroot path of the executable.  But that will have to wait until
> someone else does it next week or I return from vacation

I can maybe take a look at doing that.

Powered by Google App Engine
This is Rietveld 408576698