Zdenek Behan 6f17b5e5fe 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.

Review URL: http://codereview.chromium.org/2714010
2010-06-10 16:50:52 -07:00
2010-04-01 13:07:10 -07:00
2010-06-10 01:36:40 -07:00
2009-10-09 20:56:14 +00:00
2010-05-05 14:14:09 -07:00
2010-06-10 01:36:40 -07:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 165 MiB
Languages
Shell 93.1%
Python 6.9%