image build and composition scripts for Flatcar Container Linux
Go to file
Mike Frysinger 7f30c14bdc enter_chroot: bind mount /dev/pts
All devpts mounts are actually shared, even if you do:
	mount -t devpts none /dev/pts
	mount -t devpts none /mnt/foo
	mount -t devpts none /mnt/asdfasdf
These all provide the same data.

This is problematic because most distros mount their host devpts like so:
	mount -t devpts devpts /dev/pts -o mode=620,gid=5

But when cros_sdk runs, it uses:
	mount -t devpts none /dev/pts

We aren't specifying a mode/gid, so it ends up using the defaults, and
this resets the host devpts mount as well.

Since we've already assumed that the system has devpts available, it's
fine to also assume that the system has it mounted at /dev/pts and we
can simply bind mount it.

BUG=None
TEST=`cros_sdk` no longer messes up host perms on /dev/pts

Change-Id: Ib594fc5e47707f296d97ac1edce32659ed2b2273
Reviewed-on: https://gerrit.chromium.org/gerrit/48018
Reviewed-by: Steev Klimaszewski <threeway@gmail.com>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
2013-07-14 10:45:10 -07:00
bin Add capability to chroot to use proxies for git:// urls 2013-07-14 10:45:10 -07:00
build_library feat(build_library): Add --upload_path option to override default 2013-07-10 19:44:40 -04:00
chroot_version_hooks.d fix(*): use COREOS_OFFICIAL 2013-06-30 19:39:39 -07:00
hooks/install Excluded ${D}usr/lib/debug/* files from hardened checks. 2012-10-24 20:15:53 -07:00
lib fix(catalyst): Use new COREOS_SDK_VERSION var from version.txt 2013-07-13 21:06:29 -04:00
mod_for_dbusspy Fix configuration to make dbus-monitor work 2012-11-27 12:36:14 -08:00
mod_for_factory_scripts Restore global_config.ini (necessary for autotests to run). 2012-07-23 02:18:20 -07:00
mod_for_test_scripts install kernel testcase modules on test image only 2012-12-21 12:42:42 -08:00
path-overrides umount wrapper: fix inverted logic 2012-09-12 22:32:18 -07:00
sdk_lib enter_chroot: bind mount /dev/pts 2013-07-14 10:45:10 -07:00
.gitignore cros_sdk: Allow additional chroot mounts via .local_mounts file 2012-09-21 16:48:52 -07:00
archive_hwqual Don't depend on zip files in archive_hwqual (1 of 2). 2012-10-15 14:19:08 -07:00
bash_completion Trivial change to test the commit queue by cleaning up Copyright date in bash_history. 2011-09-01 18:48:39 -07:00
boot_nspawn feat(boot_nspawn): Add wrapper script for booting via systemd-nspawn 2013-06-08 21:48:47 -04:00
bootstrap_sdk fix(bootstrap_sdk): Rename catalyst_stage4.sh since it is sdk specific 2013-07-09 15:57:21 -04:00
branch_release fix(common): Adopt semver formatted version strings. 2013-07-09 11:31:39 -07:00
build_image fix(build_image): print out image_to_vm for dev image 2013-07-07 21:41:28 -07:00
build_kernel_image.sh Configure the serial port for debugging 2013-01-23 17:44:43 -08:00
build_packages fix(build_packages): Move gsutil code from build_packages to a library. 2013-07-05 23:54:23 -04:00
call_autoserv.py Added HWQual utility script - call_script.py 2011-01-27 16:19:55 -08:00
chromeos-common.sh Switch to GPT-format disk images. 2010-03-30 14:17:34 -07:00
clean_loopback_devices Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
common.sh Remove a warning when $HOME is on NFS 2013-07-14 10:45:10 -07:00
core_upload_update fix(core_upload_update): Set PATH for au-generator.zip bundles. 2013-07-08 21:50:22 -07:00
cros_generate_breakpad_symbols setup DEFAULT_BOARD by default 2012-08-14 10:17:31 -07:00
cros_generate_stacks_bvt Simplify boilerplate common.sh code in src/scripts. 2012-07-12 10:55:37 -07:00
cros_run_unit_tests Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
cros_show_stacks setup DEFAULT_BOARD by default 2012-08-14 10:17:31 -07:00
cros_workon Add the --include-masked flag when calling the equery which command. 2013-01-30 14:25:44 -08:00
enable_localaccount.sh This starts to fix the scripts so that they load from /usr/lib/crosutils 2011-02-01 22:04:49 -08:00
exclude-list Create squashfs as the rootfs. 2011-08-26 13:04:29 -07:00
gen_tmpfiles.py fix(gen_tmpfiles): Add trailing newline 2013-06-06 14:22:40 -04:00
generate_test_report Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
get_latest_image.sh setup DEFAULT_BOARD by default 2012-08-14 10:17:31 -07:00
get_package_list setup DEFAULT_BOARD by default 2012-08-14 10:17:31 -07:00
image_to_live.sh Move some dev scripts into dev/host. 2011-03-23 14:34:53 -07:00
image_to_usb.sh image_to_usb.sh: allow writing to character devices 2013-01-12 23:06:32 -08:00
image_to_vm.sh fix(build_image): Configure legacy bootloaders to set root by UUID. 2013-07-08 16:28:12 -04:00
install_toolchain Add install_toolchain script. 2012-11-20 11:57:12 -08:00
make_factory_package.sh Move symlink to make_factory_packages.py. 2012-11-26 23:10:15 -08:00
make_netboot.sh make_netboot: Fix path to netboot firmware 2013-01-28 08:16:31 -08:00
master_release fix(*_release): Calculate TODAYS_VERSION in common.sh 2013-07-03 12:11:49 -04:00
mod_image_for_recovery.sh Add TPM and I2C device USE flags when building initramfs kernel 2013-01-22 18:57:41 -08:00
mod_test_image_for_dbusspy.sh Simplify boilerplate common.sh code in src/scripts. 2012-07-12 10:55:37 -07:00
mod_test_image_for_pyauto.sh setup DEFAULT_BOARD by default 2012-08-14 10:17:31 -07:00
mount_gpt_image.sh fix(mount_gpt_image): fixup mount options 2013-05-19 17:25:49 -07:00
PRESUBMIT.cfg Add pylint hook to src/scripts. 2013-01-18 11:40:40 -08:00
remote_access.sh remote_access: Add some helper command for copying with rsync 2012-12-10 08:44:29 -08:00
run_chroot_version_hooks Pass more proxy vars into the chroot, rework sudoers.d maintenance. 2012-08-24 13:26:03 -07:00
run_remote_tests.sh Remove testing utilities and fix symlinks. 2011-03-24 16:06:59 -07:00
security_test_image security_test_image: new signer test script 2012-10-02 16:45:18 -07:00
serve_factory_packages.py crosutils: globally replace enter_chroot with cros_sdk 2011-08-19 15:35:32 -07:00
set_shared_user_password.sh Added password arg to set_shared_user_password.sh 2012-07-25 10:50:08 -07:00
setup_board cleanup(setup_board): Remove /etc/make.conf.board 2013-06-22 16:05:33 -04:00
sha256_partitions.sh sha256_partitions: script to easily sha256 partitions of a .bin file. 2011-08-11 10:00:12 -07:00
ssh_test.sh Simplify boilerplate common.sh code in src/scripts. 2012-07-12 10:55:37 -07:00
start_devserver Simplify boilerplate common.sh code in src/scripts. 2012-07-12 10:55:37 -07:00
update_bootloaders.sh feat(disk_layout): follow new CoreOS partition layout 2013-05-12 12:31:03 -07:00
update_chroot fix(scripts): Add --nogetbinpkg command line option 2013-06-18 14:49:59 -04:00
update_distfiles fix(update_distfiles): Set temporary directory 2013-06-26 14:07:16 -04:00
update_ebuilds fix(update_ebuilds): Switch default source to rsync mirrors. 2013-07-03 14:38:11 -04:00
update_kernel.sh update_kernel: Save .5 seconds by avoiding tmp copy for kernel image 2012-12-17 13:29:08 -08:00
upload_symbols setup DEFAULT_BOARD by default 2012-08-14 10:17:31 -07:00
verify_rootfs_chksum.sh Simplify boilerplate common.sh code in src/scripts. 2012-07-12 10:55:37 -07:00