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

Issue 2714010: enter_chroot: when preparing chroot, mount devpts filesystem as well (Closed)

Created:
10 years, 6 months ago by zbehan
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://gitrw.chromium.org/crosutils
Visibility:
Public.

Description

enter_chroot: when preparing chroot, mount devpts filesystem as well * This also adds reverse sort into the umount list, because of cascading mounts, so that /foo/anything is always before /foo, and as such is always unmounted first. If the list were not sorted, "mount point busy" errors might occur, depending on various conditions. TEST= 1) With a previously created chroot, I ran enter_chroot.sh, and got the correct prompt. After logging out of that prompt, everything else was correctly unmounted, without any error messages. When entering chroot twice from two different shells, everything was correctly unmounted after the last shell exited. 2) Repeat 1 but with cleanly created chroot just for this purpose. 3) In the chroot, make packages for one board (x86-generic) using build_packages 4) The messages "openpty failed: 'out of pty devices'" whenever trying to emerge anything (or other commands looking up pts) have disappeared.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed 80 column lines #

Total comments: 2

Patch Set 3 : one more space indent #

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

Messages

Total messages: 8 (0 generated)
zbehan
10 years, 6 months ago (2010-06-10 20:08:57 UTC) #1
sosa
Can you add a TEST= stanza to the issue to indicate how you tested this ...
10 years, 6 months ago (2010-06-10 20:15:04 UTC) #2
zbehan
On 2010/06/10 20:15:04, sosa wrote: > Can you add a TEST= stanza to the issue ...
10 years, 6 months ago (2010-06-10 21:28:36 UTC) #3
zbehan
10 years, 6 months ago (2010-06-10 21:29:49 UTC) #4
sosa
lgtm with another nit and assumes you add a TEST stanza http://codereview.chromium.org/2714010/diff/6001/7001 File enter_chroot.sh (right): ...
10 years, 6 months ago (2010-06-10 21:32:14 UTC) #5
zbehan
10 years, 6 months ago (2010-06-10 23:43:19 UTC) #6
zbehan
http://codereview.chromium.org/2714010/diff/6001/7001 File enter_chroot.sh (right): http://codereview.chromium.org/2714010/diff/6001/7001#newcode219 enter_chroot.sh:219: $(mount | grep -F "on $MOUNTED_PATH/" | sort -r ...
10 years, 6 months ago (2010-06-10 23:44:20 UTC) #7
sosa
10 years, 6 months ago (2010-06-10 23:48:19 UTC) #8
lgtm

Powered by Google App Engine
This is Rietveld 408576698