Commit Graph

3233 Commits

Author SHA1 Message Date
Michael Marineau
ac931bd088 fix(setup_board): Install baselayout with USE=build
We need to install baselayout with the build use flag as the very first
package in the new board sysroot to ensure the system's directory
structure is created correctly. This should resolve surprise failures
with the bootengine ebuild.
2013-07-22 21:42:57 -04:00
Michael Marineau
be63f41081 fix(make.conf.user): Fix references to old make.conf.user path.
We've moved all of the chroot configs from /etc to /etc/portage but
setup_board was still symlinking to /etc. Fix the path so no one gets
mixed up by the two copies of the same file. Remove unused script that
also used to write to old location.
2013-07-22 21:42:57 -04:00
Brandon Philips
abc38e033b Merge pull request #52 from philips/add-hvc0-to-grub
Add hvc0 to grub
2013-07-22 18:22:02 -07:00
Brandon Philips
69803d5ad6 feat(create_legacy_bootloader): add hvc0 on Xen
add console=hvc0 for systems that use pygrub/pvgrub by adding it to the
menu.lst files.
2013-07-22 17:37:51 -07:00
Brandon Philips
a923365449 chore(build_library/create_legacy_bootloader): remove old stuff
We don't need all of these args. Remove them.
2013-07-22 17:36:17 -07:00
Brandon Philips
e8be1de9ff Merge pull request #49 from philips/cleanup-chromiumos-constants
Cleanup chromiumos constants
2013-07-22 15:09:22 -07:00
Alex Polvi
017ec772a8 add rackspace 2013-07-22 14:55:44 -07:00
Brandon Philips
95b2a4b8cd chore(*): use coreos_ everywhere 2013-07-21 23:20:50 -07:00
Brandon Philips
80b72e9318 chore(*): remove obsolete stuff
- mod_for_factory says it is obsolete
- coreos doesn't sign ssds
- download_latest is just wrong for us
2013-07-21 22:56:58 -07:00
Brandon Philips
5f6d02b7db Merge pull request #48 from philips/reintroduce-unique-a-b-menu.lst
feat(build_library): reintroduce A/B menu.lst
2013-07-21 22:50:56 -07:00
Brandon Philips
836ffc9327 feat(build_library): reintroduce A/B menu.lst
reintroduce unique A/B menu.lsts to work around the kexec problems that
we have. Essentially instead of always using boot_kernel on pvgrub
systems use the A/B kernels installed at update time to the boot
partition.
2013-07-21 22:30:46 -07:00
Brandon Philips
d25d24d582 Merge pull request #47 from philips/make-lsb-release-official-on-prod
feat(build_image): official lsb-release on prod images
2013-07-21 22:13:52 -07:00
Brandon Philips
4c637bbe8c feat(build_image): official lsb-release on prod images
The /etc/lsb-release should have official values on the prod image. That
way someone can ping the official api.core-os.net with this image.
2013-07-21 22:10:02 -07:00
Brandon Philips
88e4176865 Merge pull request #46 from philips/fix-au-key
fix(cros_make_image_bootable): need to mkdir first
2013-07-21 21:24:20 -07:00
Brandon Philips
a924223b75 fix(cros_make_image_bootable): need to mkdir first
The au directory doesn't exist. Make the directory first.
2013-07-21 21:11:10 -07:00
Greg Kroah-Hartman
138e8eb715 Merge pull request #45 from philips/switchup-bootkernel
Switchup bootkernel
2013-07-21 16:22:21 -07:00
Brandon Philips
33e9017478 fix(cros_make_image_bootable): no more bootkernel
the bootkernel is going away and we will just have a single kernel for
all of the things. This is because of the kxec on xen problem.
2013-07-20 16:25:01 -07:00
Brandon Philips
f73cbac8db feat(build_image): install the au-key
Install the developer au key on production images. This will need to
change when we have the production key.
2013-07-20 16:24:13 -07:00
Brandon Philips
a80d755473 Merge pull request #44 from marineam/fix-umount
Fix umount
2013-07-18 23:47:07 -07:00
Michael Marineau
99089076af fix(build_image): Don't unmount when the rootfs isn't mounted
This function is never called when rootfs is mounted but leaving in a
check for it as a just in case sort of thing.
2013-07-19 02:41:52 -04:00
Michael Marineau
e99f088f19 fix(common): Simplify unmount code, die loud and die hard.
As-is safe_umount is extremely dangerous. When passed multiple mount
points and any one of them fail with a "not mounted" or "doesn't exist"
error then any others that fail with a more serious error will be
silently ignored. This can cause untold sadness when running deleting a
chroot with cros_sdk if /mnt/host/source is left mounted, all your code
will be gone. To avoid this situation remove *ALL* this extra logic and
die very loudly when umount fails. Due to the way bind mounts interact
with this code "not mounted" so when unmounting a full tree we need to
still need to gracefully retry when the first umount fails.
2013-07-18 16:59:29 -07:00
Michael Marineau
67cea27070 fix(common): Fix okboat and failboat because boat. 2013-07-18 15:52:47 -07:00
Michael Marineau
b9257ee2a8 fix(common): Read mounts from /proc/self/mounts
Just in case the filesystem view is slightly different.
2013-07-18 15:27:02 -07:00
Brandon Philips
ee3fc09057 Merge pull request #42 from marineam/locale
hack(build_image): Make check for /usr/share/locale a warning.
2013-07-18 10:50:03 -07:00
Michael Marineau
7564371200 hack(build_image): Make check for /usr/share/locale a warning.
Switching the toolchain to upstream Gentoo brought this directory back
and based on the Chromium OS history keeping this directory out of the
builds is a bit tedious. Keeping image sizes down isn't *that* important
right now so just let it be.
2013-07-18 10:38:16 -07:00
Brandon Philips
491fc77fef Merge pull request #41 from marineam/pathfix
fix(bootstrap_sdk): Fix upload path.
2013-07-17 21:47:40 -07:00
Michael Marineau
f0c2cb1ccd fix(bootstrap_sdk): Fix upload path.
Previous commit added an extra /coreos directory to the path.
2013-07-18 00:44:57 -04:00
Brandon Philips
bda24887e3 Merge pull request #39 from philips/use-boot-kernel
Use boot kernel
2013-07-17 19:19:29 -07:00
Michael Marineau
cc056d0527 Merge pull request #40 from marineam/load
fix(scripts): Add --load-average to MAKEOPTS
2013-07-17 18:56:17 -07:00
Michael Marineau
09203453dd fix(scripts): Add --load-average to MAKEOPTS
Already did this for catalyst builds but might as well do it for all.
With this competing builds on the same host should be a little
friendlier to each other.
2013-07-17 18:04:51 -07:00
Brandon Philips
7ea2b4924f feat(boot_kernel): add support for the boot kernel
This adds the boot_kernel to the build boot partiton and updates the
relevant config files. Mission accomplished.

TODO: Update the installer to not worry about moving files around
anymore
2013-07-17 18:02:27 -07:00
Brandon Philips
ed037ea05c chore(build_library): remove efi image
we don't really care about booting on pure efi systems right now and I don't
think this all works so remove it for now.
2013-07-17 18:02:02 -07:00
Brandon Philips
06444a4ffc chore(build_library): strip out verity logic
remove some unused verity variables.
2013-07-17 18:00:00 -07:00
Michael Marineau
4bc1c512b1 Merge pull request #38 from marineam/branch
fix(branch_release): Include new SDK_VERSION variable.
2013-07-17 17:41:40 -07:00
Michael Marineau
f3fad9c715 fix(branch_release): Include new SDK_VERSION variable.
Missed this script when I added SDK_VERISON to version.txt
2013-07-17 20:28:16 -04:00
Michael Marineau
8b24c8b282 Merge pull request #37 from marineam/sysroot
Sysroot and catalyst updates
2013-07-17 17:10:03 -07:00
Michael Marineau
b2f4f1a92e fix(update_chroot): Install sysroot-wrappers before updating toolchain.
sysroot-config will be called if anything is installed/upgraded so it
better be there and ready! :)
2013-07-17 19:25:46 -04:00
Michael Marineau
51f52bbca2 fix(bootstrap_sdk): Don't include cross toolchains in final tarball.
The packages have to be downloaded separately so don't waste space
including it in the stage4 tarball.
2013-07-17 19:25:46 -04:00
Michael Marineau
828a4e1710 cleanup(catalyst): Updates for catalystrc
Remove the catalystrc code that updated /etc/locale.gen, it wasn't
generally effective since catalyst installs things without
CONFIG_PROTECT and therefore locale.gen always got overwritten just
before it was going to be used. Add --load-average to MAKEOPTS so
builds better manage their parallelism when multiple independent jobs
are compiling code. Disable some locking to speed up builds that use
lots of binary packages.
2013-07-17 19:25:46 -04:00
Michael Marineau
6b336e17b2 fix(bootstrap_sdk): Move gsutil code to release_util.sh
Sync up bootstrap_sdk with other tools by using the common upload
functions. As part of this refactor release_util a bit to provide a
truly generic upload function.
2013-07-17 19:25:46 -04:00
polvi
d4543baaca Merge pull request #36 from philips/make-the-disk-bigger
Make the disk bigger
2013-07-17 16:25:13 -07:00
Brandon Philips
7cc09c349b feat(disk_layout): increase OEM size
increase the size of the OEM partition to 128M
2013-07-17 16:19:30 -07:00
Brandon Philips
938e0132d1 feat(legacy_disk_layout): increase boot metadata
increase the boot metadata size to 64M
2013-07-17 16:18:41 -07:00
Brandon Philips
4bd3273f14 Merge pull request #35 from coreos/image-to-vm-ami
feat(image_to_vm): AMI support
2013-07-17 14:28:12 -07:00
Alex Polvi
268a1efd3f feat(image_to_vm): AMI support
add support for the hybrid MBR and OEM partition on Amazon.
2013-07-17 14:27:38 -07:00
Brandon Philips
3a0121360d Merge pull request #34 from philips/remove-kernel-image-references
Remove kernel image references
2013-07-17 12:01:45 -07:00
Brandon Philips
f2a0ed323e chore(cros_make_image_bootable): remove rootfs_hash references
this was part of the kernel vblock stuff. Just remove it for now.
2013-07-17 11:56:47 -07:00
Brandon Philips
fc6717b653 chore(*): remove kernel_image references
we don't use a kernel_image and don't use vblocks so remove the logic
related to these things.
2013-07-17 11:50:50 -07:00
Michael Marineau
898ab93461 Merge pull request #33 from marineam/sdk-mounts
SDK script updates
2013-07-14 14:01:57 -07:00
Mike Frysinger
4bdab9f7fe enter_chroot: speed up entering by backgrounding locale generation
Half of the current time is spent on calling locale-gen even when there is
nothing to be done (all locales already generated).  Throw it into the bg
to unblock the main thread.

BUG=None
TEST=`cros_sdk` still works
TEST=`LANG=et_EE.UTF-8 cros_sdk` generates the new locale in the background

Change-Id: Ibe9a07bec60a59cab1cf4230358f7f8ff5b21c2e
Reviewed-on: https://gerrit.chromium.org/gerrit/58041
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