28179 Commits

Author SHA1 Message Date
Michael Marineau
a2c6016ca0 add(coreos-base/oem-vagrant-key): Add oem for vmware_insecure images.
vmware_insecure currently pulls in oem-vagrant which made more sense
back when that package only installed a ssh key. Now that it is oh so
much more and only works properly inside of Vagrant this new ebuild
provides a way to just get the ssh key again.
2014-05-02 15:06:01 -07:00
Brandon Philips
8a38039706 Merge pull request #573 from philips/locksmith-send-need-reboot
bump(app-admin/locksmith): grab the send-need-reboot command
2014-05-02 14:30:35 -07:00
Brandon Philips
3c3e748126 bump(app-admin/locksmith): grab the send-need-reboot command 2014-05-02 13:50:40 -07:00
Brandon Philips
d495a980c5 Merge pull request #572 from philips/change-default-locksmith-strategy
feat(app-admin/locksmith): change the default strategy
2014-05-02 13:48:46 -07:00
Brandon Philips
c8f59f1b50 feat(app-admin/locksmith): change the default strategy 2014-05-01 18:38:49 -07:00
Michael Marineau
33b54ee001 Merge pull request #237 from marineam/groups
Updates, keys, and groups
2014-05-01 18:02:04 -07:00
Michael Marineau
2b1106b825 Merge pull request #570 from marineam/key
Install update keys via ebuild
2014-05-01 18:01:46 -07:00
Brandon Philips
caeedfc05d Merge pull request #571 from philips/locksmith
add locksmith
2014-05-01 16:45:17 -07:00
Brandon Philips
e8e9c0ea06 feat(coreos-base/coreos): add locksmith 2014-05-01 14:38:45 -07:00
Brandon Philips
a5b17a1555 feat(app-admin/locksmith): Initial commit 2014-05-01 14:38:45 -07:00
Brandon Philips
ebe1662c5f bump(coreos-base/update_engine): latest version with new dbus API 2014-05-01 14:00:12 -07:00
Michael Marineau
1430315362 bump(coreos-base/cros-devutils): Sign updates generated by devserver 2014-05-01 11:09:29 -07:00
Michael Marineau
75999b5e2a fix(build_image): Add group prefix to image output directories. 2014-05-01 10:21:51 -07:00
Michael Marineau
4e85b172df feat(build_image): Optionally generate update payload with prod images. 2014-05-01 09:59:58 -07:00
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