image build and composition scripts for Flatcar Container Linux
Go to file
Brian Harring ece65e0633 Add a umount wrapper to suppress gvfsd/trashd breaking umount calls.
Specifically, detect if the umount failed due to current access, if so,
give it up to 9 more runs (w/ 1s pauses) continuing only if it's still
failing due to currently open files.

Via this, it should suppress the race of gvfs/trashd looking at
quick mounted/umounted pathways.

This CL is a two parter; this adds the script, and converts common.sh
consumers over to using the override.

The next CL will modify the chroot itself to ensure our script gets
picked up/used.

BUG=chromium-os:23443
TEST=trybot, manul validation.

Change-Id: I92dedd91d6133c2063b1e5dbbc1a68366844801d
Reviewed-on: https://gerrit.chromium.org/gerrit/32087
Commit-Ready: Brian Harring <ferringb@chromium.org>
Reviewed-by: Brian Harring <ferringb@chromium.org>
Tested-by: Brian Harring <ferringb@chromium.org>
2012-09-05 00:00:43 -07:00
bin Move loman to chromite (proper location for it after all). 2012-08-22 18:34:43 -07:00
build_library Move chromeos-factory into mod_image_for_test 2012-08-28 13:38:19 -07:00
chroot_version_hooks.d Add conversion script to convert Butterfly board to 32bit. 2012-08-31 18:29:32 -07:00
lib Look for both kvm and qemu-kvm. 2012-09-05 00:00:43 -07:00
mod_for_dbusspy Move enable-dbus-monitor to be a mod_for_dbusspy behavior 2012-03-21 12:23:48 -07: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 Faux-enable the sslkeylogfile use flag on test images 2012-07-31 11:59:25 -07:00
path-overrides Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
sdk_lib Pass more proxy vars into the chroot, rework sudoers.d maintenance. 2012-08-24 13:26:03 -07:00
.gitignore ignore cbuildbot_package.list file 2011-12-14 20:57:10 -08:00
archive_hwqual Use the archived full autotest tarball in archive_hwqual 2012-07-19 16:27:46 -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
build_image Adding board specific image creation stage 2012-08-07 19:06:42 -07:00
build_kernel_image.sh build_kernel_image: modify console, loglevel and quiet kernel options 2012-08-23 10:51:12 -07:00
build_packages Move chromeos-factory into mod_image_for_test 2012-08-28 13:38:19 -07: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_bash_backtraces.sh fix up function style 2012-05-11 14:10:38 -07:00
common.sh Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -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 Fix breakage induced by CL:342067. 2012-09-04 21:43:53 -07: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
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 Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
image_to_vm.sh Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
make_factory_package.sh crosutils: move factory setup scripts to ../platform/factory-utils/factory_setup 2011-11-08 23:09:11 -08:00
make_netboot.sh Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
mod_image_for_recovery.sh Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
mod_image_for_test.sh Move warning message for mod_image_for_test before actual library call. 2012-06-04 03:08:35 -07: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 Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
remote_access.sh Command-line override of default SSH connection timeout/attempts. 2012-08-29 16:51:03 -07: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
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 setup_board: drop binutils from package.provided 2012-08-18 13:57:33 -07: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 Add a umount wrapper to suppress gvfsd/trashd breaking umount calls. 2012-09-05 00:00:43 -07:00
update_chroot update_chroot: fix clobbering of initial toolchain flags with --nousepkg 2012-08-22 19:09:20 -07:00
update_kernel.sh update_kernel: update syslinux before module copy 2012-08-17 07:18:41 -07: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