Michael Marineau
1177d198da
fix(release_util): Fix DIGESTS regression from feb59db9f
...
While attempting to fix the easy to mix up DIGESTS names in feb59db9f
I
stumbled across yet another way that the DIGESTS names were a bit
unpredictable: previously a .bz2 got stuck into the file name when
upload_images automatically compressed some file types. The new code
missed this and never added the .bz2. Correct this now, both for
image_to_vm which has a pile of glue to keep the legacy names in place
for now and build_image which I never intended to change.
2014-02-19 17:50:40 -08:00
Michael Marineau
dc9a03c40f
Merge pull request #179 from marineam/nofast
...
Disable parallel_emerge, fix using SDKs w/ new baselayout
2014-02-18 17:18:22 -08:00
Michael Marineau
16bc3521e5
fix(make_chroot): Fix SDK setup w/ empty passwd and group files
...
New baselayout 3 based SDKs define system files in separate read-only
files so the normal group and passwd files don't exist yet.
2014-02-17 22:48:52 -08:00
Michael Marineau
10025571d9
fix(common): Disable parallel_emerge by default for most commands.
...
I would like to phase out parallel_emerge so disable it for all commands
other than build_image which is the only one that shows a noticeable
benefit from it (~2 min with --fast, ~3 min with --nofast).
2014-02-17 12:42:22 -08:00
Michael Marineau
d4166b4998
Merge pull request #178 from marineam/gentoo-release
...
fix(prod_image_util): restore /etc/gentoo-release
2014-02-17 11:20:14 -08:00
Michael Marineau
930260ab9e
fix(prod_image_util): restore /etc/gentoo-release
...
Vagrant reads this file to determine that we are CoreOS... so lets not
break that just yet. A PR to switch to os-release has been posted:
https://github.com/mitchellh/vagrant/pull/2985
Some day gentoo-release will be dropped but that day is not today.
2014-02-14 20:28:20 -08:00
Michael Marineau
cf668e9049
Merge pull request #177 from marineam/baselayout
...
Baselayout
2014-02-14 18:18:26 -08:00
Michael Marineau
7dd8d95b45
fix(build_image): Drop long unused overlays/usr/local bind mount
...
This was used by the old ChromeOS "dev image" scheme and does not get
mounted by default so stop shipping it.
2014-02-14 16:14:39 -08:00
Michael Marineau
438478f0cf
fix(base_image_util): Do not auto-generate conflicting tmpfiles entries
...
Many directories are now handled by the new baselayout instead.
2014-02-14 16:13:31 -08:00
Michael Marineau
ae67e89159
Merge pull request #176 from marineam/nss
...
fix(update_chroot): Install/update nss-usrfiles early
2014-02-14 14:40:37 -08:00
Michael Marineau
e6d348cbd1
fix(update_chroot): Install/update nss-usrfiles early
...
Soon nss-usrfiles will be required to resolve users and groups properly.
To avoid potentially breaking during the transition we need to make sure
the package is installed early during the chroot upgrade process.
2014-02-13 18:53:53 -08:00
Michael Marineau
5dc090dae9
Merge pull request #175 from marineam/coretest
...
Use coretest in AMI test script
2014-02-11 21:36:14 -08:00
Michael Marineau
5bc66986cf
feat(test_ami): Add coretest
2014-02-11 21:16:19 -08:00
Michael Marineau
6097c50ccf
fix(test_ami): Update timeouts to what we've actually been using
2014-02-11 21:16:19 -08:00
Michael Marineau
02edace9da
fix(test_ami): Drop old autotest based version.
...
This never worked and has been abandoned in favor of coretest.
2014-02-11 21:16:19 -08:00
Michael Marineau
2d20e79b38
Merge pull request #174 from marineam/fix-plus
...
fix(common): Fix dumb typo in bash alternate-value expansion
2014-02-10 22:46:18 -08:00
Michael Marineau
e6739a22a8
fix(common): Fix dumb typo in bash alternate-value expansion
...
Missing a :
Perhaps I'm getting to clever with my shell for my own good.
2014-02-10 21:56:59 -08:00
Michael Marineau
7453f7b749
Merge pull request #173 from marineam/auto-rev
...
fix(tag_release): increment minor version if major is unchanged
2014-02-10 15:23:14 -08:00
Michael Marineau
5c420c188e
fix(tag_release): increment minor version if major is unchanged
2014-02-10 15:03:16 -08:00
Michael Marineau
f2c0c79775
Merge pull request #172 from marineam/load
...
fix(setup_board): increase load-based threshold to 2xCPUs
2014-02-09 21:34:12 -08:00
Michael Marineau
e1ee712a16
fix(setup_board): increase load-based threshold to 2xCPUs
...
My laptop has idle time! This cannot stand...
2014-02-09 21:01:39 -08:00
Michael Marineau
5bba92ce2c
Merge pull request #171 from marineam/bashism
...
fix(vm_image_util): assert qemu wrapper is sh friendly
2014-02-09 19:59:24 -08:00
Michael Marineau
821d718a74
fix(vm_image_util): assert qemu wrapper is sh friendly
2014-02-09 18:22:34 -08:00
Michael Marineau
5abb561e19
Merge pull request #170 from marineam/catalyst
...
fix(catalyst): Recreate portage snapshot with --rebuild
2014-02-09 18:06:58 -08:00
Michael Marineau
a1026792aa
fix(catalyst): Recreate portage snapshot with --rebuild
2014-02-09 17:37:53 -08:00
Michael Marineau
c39443e597
Merge pull request #169 from marineam/binhost
...
binhost config update
2014-02-09 16:06:29 -08:00
Michael Marineau
30b72754ff
fix(setup_board): Remove note about annoying eselect warning
...
Silenced in eselect 1.4
2014-02-09 14:48:45 -08:00
Michael Marineau
7a43a07fef
feat(setup_board): Configure binary package sources on the fly.
...
Generate list of board binhosts based on the new $COREOS_DOWNLOAD_ROOT
variable and optionally use packages only from a specific version
2014-02-09 14:24:01 -08:00
Michael Marineau
5524a7ce9a
fix(common): Define VERSION_ID and BUILD_ID
...
Scripts can now use COREOS_VERSION_ID to get the base version instead of
having to strip off the BUILD_ID that is appended for unofficial builds.
2014-02-09 13:59:42 -08:00
Michael Marineau
50e54cea85
fix(release_util): Move default upload root to common, add --upload_root
...
Make it possible for other scripts to share the same value for our
release repository and equally easy to override with a custom value.
Also allow setting the root from the command line in addition to the
environment. Usually --upload_root is better to use than --upload_path.
2014-02-07 10:37:45 -08:00
Michael Marineau
d0e9240747
Merge pull request #166 from oremj/binbash
...
qemu_template: use /bin/bash instead of /bin/sh.
2014-02-07 10:34:33 -08:00
Jeremiah Orem
84b94c97f7
qemu_template: == is a bashism, change to =.
2014-02-07 00:17:14 -08:00
Michael Marineau
05b0db01af
Merge pull request #164 from marineam/cleanup
...
fix(base_image_util): Prune old reference to platform/dev
2014-01-31 15:56:12 -08:00
Michael Marineau
1f84df1388
fix(base_image_util): Prune old reference to platform/dev
2014-01-31 15:46:29 -08:00
Michael Marineau
53ba1def9d
Merge pull request #163 from marineam/digest-fix
...
fix(vm_image_util): If DIGESTS wasn't generated don't copy it.
2014-01-30 13:36:13 -08:00
Michael Marineau
bf6ee33244
fix(vm_image_util): If DIGESTS wasn't generated don't copy it.
...
Failed to test my last change with uploads disabled :(
Also, it needs to be return 0, not return.
2014-01-30 13:31:36 -08:00
Michael Marineau
15bca7930b
Merge pull request #162 from marineam/digests
...
VM image digests
2014-01-30 13:12:28 -08:00
Michael Marineau
8a15840d6a
fix(vm_image_util): Use more consistent names for vm .DIGESTS
...
Switch from naming DIGESTS based in disk image name to a common prefix.
old: coreos_production_qemu_image.img.DIGESTS ->
new: coreos_production_qemu.DIGESTS
The old behavior wasn't very consistent since plain disk images aren't
used by all types and the code implementing that was easy to brake,
namely by mistake coreos_production_pxe_image.cpio.gz.DIGESTS became
coreos_production_pxe.vmlinuz.DIGESTS a couple releases ago.
The old names will continue to exist as well for the time being to avoid
breaking existing install/download scripts and the original pxe DIGESTS
name is back.
2014-01-29 17:23:10 -08:00
Michael Marineau
feb59db9f5
fix(release_util): Add argument to specify the name to use for .DIGESTS
...
For multi-file uploads we should explicitly declare what the name of the
.DIGESTS file should be instead of using the first file name. Relying on
the ordering was subtle and easy to break.
2014-01-29 16:30:03 -08:00
Michael Marineau
b3e81f22e4
fix(image_to_vm): Wrap upload_image in vm_upload.
...
This keeps all references to VM_GENERATED_FILES inside of
build_library/vm_image_util.sh so changes that impact it more obvious.
2014-01-29 14:01:33 -08:00
polvi
7f5cb154d4
Merge pull request #160 from polvi/usr-locale
...
usr(locale): delete local and lvm stuff that is not needed
2014-01-23 16:16:34 -08:00
Alex Polvi
abd1c40b3d
usr(locale): delete local and lvm stuff that is not needed
2014-01-23 16:14:14 -08:00
Michael Marineau
010863d788
Merge pull request #158 from marineam/gmerge
...
fix(build_image): Properly configure portage in dev images.
2014-01-23 14:45:42 -08:00
Michael Marineau
b06c7896f9
fix(build_image): Properly configure portage in dev images.
...
This replaces the hack in the gmerge ebuild of just copying over a
single package.provided file to create a profile that sorta works.
2014-01-23 14:13:21 -08:00
Michael Marineau
13413947ad
Merge pull request #150 from marineam/smp
...
fix(qemu): Enable all available CPU features and SMP by default
2014-01-22 16:09:40 -08:00
Michael Marineau
61249242dd
Merge pull request #157 from marineam/etc-dirs
...
fix(tmpfiles): auto-generate tmpfiles based on .keep
2014-01-22 12:46:26 -08:00
Michael Marineau
fdfe2c2e6e
fix(tmpfiles): auto-generate tmpfiles based on .keep
...
To avoid having to sync directory creation and tmpfiles installed by
ebuilds just require ebuilds to do `keepdir /etc/path` and this script
will handle the rest. A possible extension would be to update to handle
symlinks in addition to directories in gen_tmpfiles.py
2014-01-22 12:16:35 -08:00
polvi
20f8ae73a8
Merge pull request #154 from polvi/usr-rm-from-prod
...
usr(build-artifacts): remove some things that portage automatically crea...
2014-01-21 16:47:36 -08:00
Alex Polvi
3647ecb1cc
use rmdir
2014-01-21 16:43:16 -08:00
Michael Marineau
c46c2e1c57
Merge pull request #155 from marineam/fix-img-check
...
fix(test_image_content): Remove check for localtime symlink
2014-01-21 16:42:34 -08:00