image build and composition scripts for Flatcar Container Linux
Go to file
Liam McLoughlin 080202b5d1 Fix up recovery image generation
As part of my image creation overhaul, I patched up this script to keep it
alive. I made a couple of oversights in this, which broke recovery image
generation.

The call to update_partition_table had an incorrect arg and the order of
operations inside the function was also incorrect (offsets were being
calculated before the new partition table had been written). Lastly
the call to copy the root FS to the new image was incorrect.

BUG=chromium-os:34689
TEST=Run mod_image_for_recovery, verify root FS partition is mountable

Change-Id: I5cc6f6f53284075bbdac8e57602aae86a15ee32e
Reviewed-on: https://gerrit.chromium.org/gerrit/33872
Tested-by: Liam McLoughlin <lmcloughlin@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Liam McLoughlin <lmcloughlin@chromium.org>
2012-09-23 17:00:40 -07:00
bin Simplify and add flexibility to image creation process 2012-09-23 10:05:12 -07:00
build_library Fix up OEM partition during image build 2012-09-23 17:00:37 -07:00
chroot_version_hooks.d Force our umount w/in the chroot. 2012-09-06 10:34:33 -07:00
lib VDisk size must also be changed to allot for large stateful partition. 2012-09-06 14:02:07 -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 Deprecate for_test upstart jobs by building and installing test/dev init pkgs. 2012-09-18 11:10:29 -07:00
path-overrides umount wrapper: fix inverted logic 2012-09-12 22:32:18 -07:00
sdk_lib cros_sdk: Allow additional chroot mounts via .local_mounts file 2012-09-21 16:48:52 -07:00
.gitignore cros_sdk: Allow additional chroot mounts via .local_mounts file 2012-09-21 16:48:52 -07: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 Simplify and add flexibility to image creation process 2012-09-23 10:05:12 -07:00
build_kernel_image.sh Moved knowledge of rootdev to one place 2012-09-07 17:24:27 -07:00
build_packages Deprecate for_test upstart jobs by building and installing test/dev init pkgs. 2012-09-18 11:10:29 -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 Simplify and add flexibility to image creation process 2012-09-23 10:05:12 -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 Ensure user has a chromium checkout before running chrome_set_ver. 2012-09-20 17:32:22 -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 Fix up OEM partition during image build 2012-09-23 17:00:37 -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 Fix up recovery image generation 2012-09-23 17:00:40 -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: merge common wrapper logic 2012-09-20 17:32:22 -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