Commit Graph

3708 Commits

Author SHA1 Message Date
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
Brandon Philips
c7aef5fdf2 Merge pull request #1 from bcwaldon/fix-case
fix(CONTRIBUTING.md): Fix title case
2014-02-05 15:52:24 -08:00
Brian Waldon
c4605160c5 fix(CONTRIBUTING.md): Fix title case 2014-02-05 15:51:24 -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
Michael Marineau
b95f4eb0fc fix(test_image_content): Remove check for localtime symlink
We no longer provide this symlink, it was always broken anyway.
2014-01-21 16:40:01 -08:00
Alex Polvi
98d9fdb925 usr(build-artifacts): remove some things that portage automatically creates 2014-01-21 13:01:09 -08:00
Michael Marineau
b5ebd7e32e Merge pull request #152 from marineam/remount
Some -usr updates
2014-01-20 11:17:11 -08:00
Brandon Philips
054de85da2 feat(*): initial commit 2014-01-19 12:25:11 -08:00
Michael Marineau
c955a484f5 Merge pull request #151 from marineam/fsckfix
fix(build_image): Only clear UUID on rootfs/usr filesystems.
2014-01-17 22:28:58 -08:00
Michael Marineau
453c784779 fix(build_image): Only clear UUID on rootfs/usr filesystems.
The funky UUID and other special settings should only be applied to
coreos-rootfs and coreos-usr partitions which will never be fscked. When
STATE becomes ROOT in -usr images it gets fsked while mounted read-only
and fsck updates the filesystem's UUID if it is blank. Turns out this
causes disagreement between the kernel and the disk leading to bad
things. A related issue was fixed in a newer version of tune2fs but
unless I missed it the same bugfix didn't make it into e2fsck so
updating wouldn't resolve the issue.

http://e2fsprogs.sourceforge.net/e2fsprogs-release.html#1.42.9
2014-01-17 21:41:18 -08:00
Michael Marineau
7e3dd619d1 fix(build_image): Add fstrim commands for -usr images. 2014-01-17 21:09:31 -08:00
Michael Marineau
825dfd63ee fix(build_image): Remount via new stand-alone units.
Replaces the old dev-mode script that sorta took a shotgun "remount and
hope for the best" approach. New units provided by coreos-init.
2014-01-17 21:09:31 -08:00