30065 Commits

Author SHA1 Message Date
Michael Marineau
67f1ae115e feat(coreos-base/coreos-au-key): Install signing key in SDK
This just means tools looking for the test key don't need to point at
the long and screwy path into the coreos-overlay repo.
2014-05-01 09:54:04 -07:00
Michael Marineau
e1d7b29436 feat(disk_util): Add support for extracting partitions.
This will simplify the process of generating update payloads.
2014-04-30 19:04:42 -07:00
Michael Marineau
7a7494e999 fix(prod_image_util): Do not install update test key anymore.
Leave this to the ebuild, no reason for it to be done here.
2014-04-30 17:12:59 -07:00
Michael Marineau
b3789e2f41 fix(coreos-base/update_engine): Install update signing key via ebuild.
This removes the need to perform this step during build_image.
2014-04-30 16:31:11 -07:00
Michael Marineau
38ea803ff9 Merge pull request #566 from marineam/clean
maint(profiles): Merge usr profile back into generic target.
2014-04-29 11:57:23 -07:00
Michael Marineau
3fdfe92b5d fix(vm_image_util): Fix building vagrant vmware fusion images. 2014-04-29 03:48:56 -04:00
Michael Marineau
c0b34b285c fix(coreos-base/oem-vagrant): Fix up comments
Fix some comments that were written for a previous iteration of code.
2014-04-29 03:26:54 -04:00
Michael Marineau
def1901f7e fix(coreos-base/oem-vagrant): Create directory for vagrant user-data.
This fixes compatibility with the existing Vagrantfile in
coreos-vagrant which expected the plugin code to create this directory.
Also, the units can be runtime since they are always written at boot.
2014-04-29 02:44:19 -04:00
Michael Marineau
10d98e7b32 fix(common): Switch to os-release style names in version.txt
The existing version.txt is kinda annoying. The common case of referring
to the current version requires joining three values and the names of
those values only make sense in ChromeOS. Instead just use version as a
string, using VERSION, VERSION_ID, and BUILD_ID just as they appear in
os-release. It is up to the few scripts that need the individual parts
to break the version apart.

The old values remain for the sake of compatibility.
2014-04-29 01:44:47 -04:00
Michael Marineau
20f191a804 maint(set_lsb_release): Remove gentoo-release (again)
We now require Vagrant 1.5.0 both in documentation and in code which
uses os-release instead of gentoo-release.
2014-04-29 01:44:47 -04:00
Michael Marineau
8183430f6c feat(vm_image_util): Add Vagrant metadata file
This is required for Vagrant to recognize box versions:
http://docs.vagrantup.com/v2/boxes/versioning.html
2014-04-29 01:44:47 -04:00
Michael Marineau
d7cfb39436 bump(coreos-base/oem-vagrant): Update revision, include box configs. 2014-04-28 21:44:37 -04:00
Michael Marineau
8ac5099b3a fix(coreos-base/oem-vagrant): Add hook to make it easy to set base_mac
The file `base_mac.rb` will be re-written when packing this into a box.
2014-04-28 21:44:37 -04:00
Michael Marineau
f16d776db2 fix(coreos-base/oem-vagrant): Add timeout for /etc/environment
The environment file will not be written if there are no public or
private networks defined since the configure_networks hook is never run.
Report an error after one minute to make this situation less confusing.
2014-04-28 21:44:36 -04:00
Michael Marineau
8b1ff15435 fix(coreos-base/oem-vagrant): Rework network configuration code.
- Only write configs for static networks, DHCP will work by default.
 - Match interfaces by MAC address if possible.
 - Use the configured netmask instead of always using a /24
 - Define default addresses in /etc/environment based on the type of
   network. Now using both a private and a public network works!
2014-04-28 21:44:36 -04:00
Michael Marineau
b1294b062d fix(coreos-base/oem-vagrant): Split up plugin, use change_host_name hook.
The old override-plugin.rb didn't actually properly monkey patch the
change host name function because it was missing a requires line
pointing to the file it is defined in upstream. To clarify things split
the code into two files that match the upstream names. Additionally
using this hook as it is intended means it works if a host name is
defined but additional networks are not.

As part of the split switch to starting the units directly. The
indirection through a path unit just adds complexity.
2014-04-28 21:44:36 -04:00
Michael Marineau
39951946ca feat(vm_image_util): Add new build steps, update vagrant builds
This adds two new optional build steps.  The first user of these is the
vagrant images but many of the targets can be simplified now.

- fs_hook: Anything that needs to happen before unmounting the image.
  This happens after the OEM is installed but before disk images are
  made. It can be used to copy any data out of the image.
- bundle_format: Many VM types ship as some sort of archive format
  rather than plain disk images as this script originally assumed.
  Adding this final step lets us stop using the conf step awkwardly.

Vagrant now ships with a Vagrantfile and related code included in the
OEM package. This lets us version our vagrant-side code along with the
images themselves as well making the coreos-vagrant repo optional again.
The coreos-vagrant code will still be useful for handling the fancier
cluster configuration stuff but no longer has to carry the plugin code.
2014-04-28 19:52:24 -04:00
Michael Marineau
9424a28ec3 fix(coreos-base/oem-vagrant): Move user config handling out of ruby code
There's no reason for handling vagrantfile-user-data in the Vagrant
plugin, move it to the OEM cloud-config.yml along side the user-data
handler. Use the generic user-config@ unit as well.
2014-04-28 16:54:30 -04:00
Michael Marineau
e6244ef10c add(coreos-base/oem-vagrant): Import code from coreos-vagrant
Import override-plugin.rb and some VirtualBox fixups from our published
Vagrantfile repo. The current Vagrant OEM depends on this code, making
it impossible to boot without using our special Vagrantfile. Using the
box as a stand-alone entity worked up until recently and is something
users expect to work.

Also bump the minimum Vagrant version to 1.5, matching our current
documentation.

Fixes https://github.com/coreos/bugs/issues/5
2014-04-28 16:54:30 -04:00
Michael Marineau
500e9c2693 add(coreos-base/coreos-vagrant): Import Vagrantfile template
This is the static piece of the Vagrantfile previously defined in
scripts/build_library/virtualbox_ovf.sh. Moving it here so we can start
maintaining the major Vagrant OEM pieces together.
2014-04-28 16:54:30 -04:00
Michael Marineau
e90664189d cleanup(coreos-base/oem-vagrant): Move ssh key into cloud config.
The old behavior of loading authorized_keys from /usr/share/oem is
deprecated, so lets switch vagrant to the new config driven world. :)
2014-04-28 16:54:29 -04:00
Michael Marineau
54aac646d0 Merge pull request #235 from marineam/clean
maint(build_library): Remove special case code for -usr disk layouts
2014-04-26 15:54:29 -07:00
Michael Marineau
7af2b92c29 maint(profiles): Merge usr profile back into generic target.
coreos/amd64/usr remains as an alias to coreos/amd64/generic for now.
2014-04-26 15:06:08 -07:00
Michael Marineau
7f5b5baf22 maint(build_library): Remove special case code for -usr disk layouts
More cleanup now that amd64-generic is gone.
2014-04-26 14:45:28 -07:00
Michael Marineau
fe0019e5f3 Merge pull request #565 from marineam/systemd
Systemd maintnance
2014-04-26 13:47:38 -07:00
Michael Marineau
32fa9c4708 maint(sys-apps/systemd): Replace reload patch with upstream version. 2014-04-26 13:41:09 -07:00
Michael Marineau
c2e02f63bd maint(sys-apps/systemd): Cleanup old version. 2014-04-26 13:38:59 -07:00
Michael Marineau
1c328d7c0d Merge pull request #233 from marineam/mbr
fix(disk_util): Switch back to gptmbr.bin for our MBR boot code.
2014-04-25 16:35:38 -07:00
Michael Marineau
b5986fcd6b Merge pull request #234 from marineam/syslinux
fix(syslinux): Display boot: prompt for a half second.
2014-04-25 15:03:43 -07:00
Michael Marineau
d5c5544cca fix(syslinux): Display boot: prompt for a half second.
This should make it less difficult for people to add kernel options for
debugging. Without a prompt/timeout the user must be holding down space
or some other key while syslinux loads but it may not be possible for
the user to do so provide input quite that fast. Only a half second to
avoid needlessly increasing boot times in the common case.
2014-04-25 14:45:21 -07:00
Michael Marineau
1a637d2fc9 Merge pull request #564 from marineam/systemd
fix(sys-apps/systemd): Add patch for daemon-reload bug.
2014-04-25 11:18:35 -07:00
Michael Marineau
476bae747e fix(disk_util): Switch back to gptmbr.bin for our MBR boot code.
Using the classic mbr.bin was only needed during the transition from
syslinux 3 to 6 because the behavior of gptmbr.bin changed after 3.
Now that the transition is done and cgpt supports the new scheme now it
is time we switched back. This avoids depending on using a hybrid MBR.
2014-04-25 11:15:17 -07:00
Michael Marineau
89878edf95 fix(sys-apps/systemd): Add patch for daemon-reload bug.
This should fix our issue with hung jobs. Patch from here:
http://lists.freedesktop.org/archives/systemd-devel/2014-April/018361.html

Bug report: https://bugs.freedesktop.org/show_bug.cgi?id=77066
2014-04-25 10:55:48 -07:00
Michael Marineau
77a247366c Merge pull request #563 from marineam/bump
bump(coreos-base/coreos-init): Purge amd64-generic, fix btrfs-resize
2014-04-24 13:54:23 -07:00
Michael Marineau
6493111740 bump(coreos-base/coreos-init): Purge amd64-generic, fix btrfs-resize 2014-04-24 13:29:44 -07:00
Michael Marineau
3a5388d259 Merge pull request #232 from marineam/purge
Purge amd64-generic
2014-04-23 16:46:58 -07:00
Michael Marineau
2f8f0159f8 maint(*): Delete special case code for amd64-generic 2014-04-23 16:14:50 -07:00
Michael Marineau
46e2e17697 maint(toolchain_util): Drop amd64-generic from list of valid boards.
The cleanup begins...
2014-04-23 16:02:39 -07:00
Michael Marineau
b6707c88ec Merge pull request #562 from marineam/hack
bump(coreos-base/coreos-cloudinit): Workaround config source conflict
2014-04-23 15:52:48 -07:00
Michael Marineau
cf02fb1d6b bump(coreos-base/coreos-cloudinit): Workaround config source conflict
https://github.com/coreos/coreos-cloudinit/pull/87
https://github.com/coreos/coreos-cloudinit/issues/86
2014-04-23 14:58:47 -07:00
Michael Marineau
531c7e0d54 Merge pull request #231 from marineam/ami
fix(oem/ami): Disable parallel AMI copying
2014-04-23 11:23:11 -07:00
Michael Marineau
d26a5f6c93 fix(oem/ami): Disable parallel AMI copying
The parallelism appears to be what was breaking the fussy ec2 command
line tools. Just do it serially instead.
2014-04-23 10:39:34 -07:00
Brian Waldon
1c1cf79720 Merge pull request #561 from bcwaldon/bump-coreos-cloudinit
Upgrade to coreos-cloudinit v0.5.1
2014-04-22 21:39:02 -07:00
Brian Waldon
8f67fc5996 bump(coreos-cloudinit): Upgrade to v0.5.1 2014-04-22 18:27:08 -07:00
Michael Marineau
5206dbb554 Merge pull request #560 from marineam/ue
bump(coreos-base/update_engine): Use system SSL certs.
2014-04-22 16:17:18 -07:00
Michael Marineau
49c74da722 bump(coreos-base/update_engine): Use system SSL certs.
Pulls in https://github.com/coreos/update_engine/pull/27
Fixes breakage caused by https://github.com/coreos/scripts/pull/218
2014-04-22 16:04:08 -07:00
Michael Marineau
a93bd9a991 Merge pull request #559 from marineam/oem
bump(coreos-base/coreos-init): Skip OEM on diskless systems
2014-04-21 19:44:34 -07:00
Michael Marineau
fe3e2d13fa bump(coreos-base/coreos-init): Skip OEM on diskless systems 2014-04-21 19:39:29 -07:00
Michael Marineau
fd6e6d2b6f Merge pull request #558 from marineam/btrfs
fix(sys-kernel/bootengine): Set +x on btrfs script.
2014-04-21 09:44:57 -07:00
Michael Marineau
80289fccac fix(sys-kernel/bootengine): Set +x on btrfs script.
Didn't pull this patch into 7b160f27 by mistake.
2014-04-21 09:39:04 -07:00