Commit Graph

2915 Commits

Author SHA1 Message Date
Michael Marineau
5fa0f93134 fix(make_chroot): Remove the old "force-to-latest" chroot version step.
This script is gone and dead.
2013-08-06 17:30:54 -04:00
Michael Marineau
c4219e592e fix(make_chroot): Write sudoers.d/90_cros directly.
Previously this called a file in the now deleted chroot_version_hooks.d
which surprised me to say the least but it really shouldn't have...
2013-08-06 17:19:13 -04:00
polvi
3a1d4dbe1b Merge pull request #80 from polvi/vagrant-vmware
feat(vagrant): vmware fusion support
2013-08-06 14:01:00 -07:00
Michael Marineau
64c75ff315 Merge pull request #79 from marineam/lsb4sdk
Add lsb-release to SDK tarballs
2013-08-06 13:24:52 -07:00
Alex Polvi
324f4d86f2 call it --format=vagrant_vmware_fusion 2013-08-06 11:14:03 -07:00
Alex Polvi
55062ec902 feat(vagrant): vmware fusion support 2013-08-06 10:58:18 -07:00
Michael Marineau
74c4f21b68 fix(update_chroot): Replace old chroot version scheme.
The old chroot version system we inherited from Chromium OS always
assumes that a newly unpacked tarball is the latest and greatest but
since we version the SDK in the same way as target builds we can use
that version for these sorts of upgrade scripts and not make assumptions
about how late and great the starting tarball was.

The first upgrade script simply aborts to force the user to recreate
their chroot when moving from python 2.6 to 2.7.
2013-08-06 13:54:18 -04:00
Michael Marineau
19caadc8c9 feat(common): Add simple version comparison function.
Relies on sort for version comparison which should generally be good
enough. Not a proper semver tool but good enough for dirty scripts. :)
2013-08-06 13:50:17 -04:00
Michael Marineau
9794ab32b1 feat(bootstrap_sdk): Add release data to SDK tarballs. 2013-08-05 23:18:41 -04:00
Michael Marineau
3600615dc8 fix(bootstrap_sdk): skip final release goo if stage4 wasn't built 2013-08-05 22:44:27 -04:00
Michael Marineau
a21a545f2e fix(set_lsb_release): Make sure $ROOT/etc exists.
Useful for generating a root filesystem overlay that catalyst can apply.
2013-08-05 22:38:34 -04:00
Michael Marineau
ff6af5ea8f feat(set_lsb_release): Add special "sdk" track without an update server.
I want to start including version info in SDK builds as an alternative
scheme to the existing "chroot_version_hooks" system which always
assumes freshly unpacked SDKs are the latest regardless of what version
they actually were.
2013-08-05 22:35:34 -04:00
Michael Marineau
e90ae75b18 Merge pull request #78 from marineam/sdkver
feat(master_release): Add option to automatically bump SDK_VERSION.
2013-08-05 17:00:30 -07:00
Michael Marineau
8a34fc8af8 feat(master_release): Add option to automatically bump SDK_VERSION.
Usually the only time these versions really need to mis-match are when
branching a brand new version.
2013-08-05 16:47:28 -04:00
Michael Marineau
25576f3d7e Merge pull request #77 from marineam/qcow2
Qemu, Qcow2, and Openstack
2013-08-02 12:45:20 -07:00
Michael Marineau
f8c0033de2 feat(image_to_vm): Add openstack image, uses oem-ami and qcow2 format. 2013-08-02 15:07:12 -04:00
Michael Marineau
c7ba8cd4a4 fix(image_to_vm): Replace qemu's config file with a script.
The recommended command using the config file was triggering a massive
memory leak in qemu because it was adding both the default virtual
hardware nic as well as the virtio nic. This could be worked around by
adding something like -net none or moving all the -net commands from the
file to the command line but eh. Clearly qemu config files are used and
tested by nobody else so lets just use a trusty script instead.
2013-08-02 14:53:08 -04:00
Michael Marineau
99982182b9 feat(image_to_vm): Switch to qcow2 as default qemu disk format.
We only really need raw images for dd'ing to block devices and this
format has been requested for some cases so lets just use it!
2013-08-02 14:53:08 -04:00
Brandon Philips
b324d3d215 Merge pull request #76 from philips/add-copy-box
feat(core_upload_update): copy stuff to channel URL
2013-08-02 11:49:39 -07:00
Brandon Philips
77123e9a2c feat(core_upload_update): copy stuff to channel URL
on upload copy stuff to channel URL.

TODO: add channel stuff to the index
2013-08-02 11:33:02 -07:00
polvi
f0324170ff Merge pull request #75 from polvi/vagrant-bump
add version requirement to the vagrantfile
2013-08-01 20:32:07 -07:00
Alex Polvi
9ddb254ac1 feat(vagrant) add version requirement to the vagrantfile 2013-08-01 20:29:38 -07:00
polvi
72d31f3a89 Merge pull request #74 from marineam/gzip
fix(image_to_vm): gzip vagrant's .box files
2013-08-01 19:45:33 -07:00
Michael Marineau
9c88c24131 fix(image_to_vm): gzip vagrant's .box files 2013-08-01 22:42:37 -04:00
Michael Marineau
382645945a Merge pull request #72 from marineam/vlite
vagrant image with oem partition
2013-08-01 19:30:26 -07:00
Michael Marineau
ae3202da32 fix(image_to_vm): Add VM MAC address to Vagrantfile, create box image.
Vagrant should now be good to go!
2013-08-01 19:39:12 -04:00
Michael Marineau
626ebd7eb0 fix(image_to_vm): Remove unused --prod flag, prod_image is the right one 2013-08-01 19:05:16 -04:00
Michael Marineau
a2046afc40 fix(image_to_vm): Use vmdk disks for vagrant and write configs.
Vagrant will need the virtualbox ovf plus its own Vagrantfile config.
After this we will need an optional "package" step to this script to
take these files and bundle them into a .box tarball. This could also be
used to switch from .ovf+vmdk for plain virtualbox images to a bundled
.ova archive which combines the two.
2013-08-01 16:35:28 -04:00
Michael Marineau
ce01e133db fix(image_to_vm): Use vmdk+ovf for virtual box images.
Now we have a config file that can be imported into VirtualBox.
2013-08-01 14:42:04 -04:00
Michael Marineau
5e1337307a feat(image_to_vm): Basic vagrant disk image support
This just generates a vdi that includes the vagrant ssh key.
2013-08-01 00:02:33 -04:00
Michael Marineau
7c48115da6 fix(image_to_vm): Use saved version info instead of parsing directory.
Trying to include version info by adding the directory name to VM image
names didn't work and a better solution is for build_image to write out
a version.txt file. This should also fix an issue where uploading from
image_to_vm.sh didn't always go to the same location as the images
uploaded from build_image did.
2013-07-31 21:22:52 -04:00
Brandon Philips
857da8829f Merge pull request #70 from philips/fix-core-update
fix(core_upload_update): remove CORE_UPDATE_URL
2013-07-31 15:49:52 -07:00
Brandon Philips
94c36b5483 fix(core_upload_update): remove CORE_UPDATE_URL
We are using the CoreOS CA now in core-admin. This isn't needed (and in
fact breaks things).
2013-07-31 13:58:18 -07:00
Brandon Philips
8e0c8bb8d0 Merge pull request #69 from philips/cleanup-LICENSE
LICENSE: minor cleanups
2013-07-31 11:21:42 -07:00
Brandon Philips
1537c81485 LICENSE: minor cleanups
add 2013 and cleanup the formatting
2013-07-31 11:20:58 -07:00
Brandon Philips
82b40d702a Merge pull request #68 from traviscross/master
License project under the BSD-3 license used by Chrome OS
2013-07-31 11:17:34 -07:00
Travis Cross
3d235a8f74 License project under the BSD-3 license used by Chrome OS 2013-07-31 18:15:32 +00:00
Michael Marineau
ae9b5f877a Merge pull request #66 from marineam/fstrim
fix(build_library): Re-enable zeroing free-space but in a sane way.
2013-07-27 14:45:26 -07:00
Michael Marineau
9f3517a474 Merge pull request #67 from marineam/use-tags
fix(master_release): Use tag names in commit message when available
2013-07-27 14:44:52 -07:00
Michael Marineau
84348c39af fix(build_library): Re-enable zeroing free-space but in a sane way.
As of Linux 3.2 loopback supports discard by punching holes in the
underlying file. This doesn't actually seem to impact things right now
since we are writing to fresh filesystems but might as well do this to
prevent wasted space from sneaking in later on.
2013-07-27 16:39:52 -04:00
Michael Marineau
84f2909531 fix(master_release): Use tag names in commit message when available 2013-07-27 15:56:51 -04:00
Michael Marineau
215a558a20 Merge pull request #65 from marineam/misc
Misc build updates
2013-07-27 09:42:21 -07:00
Michael Marineau
505107c48d fix(catalyst): Cleanup temporary files.
Catalyst doesn't clean up the temporary root directories even though we
don't have seedcache enabled. So lets wipe that mess up.
2013-07-27 00:07:09 -04:00
Michael Marineau
a1a1ed830c fix(build_library): Use sparse files for disk images, no useless sudo
Enable sparse files for all dd and cp commands and replace some dd
commands that are really better off being truncate commands.

While in the neighborhood there were a number of useless sudo commands
for things that just happen to be in sbin. Call them directly instead.
2013-07-26 23:45:10 -04:00
Michael Marineau
f46ee8c332 fix(build_image): Fix building dev and prod without base
Ever since adding prod it hasn't been possible to build just dev and
prod without explicitly building base. Base is always built but usually
there is no point to keeping it around. Add some logic to make dev not
conflict with prod and make sure base is deleted and not uploaded if it
wasn't explicitly requested.
2013-07-26 22:56:27 -04:00
Michael Marineau
1ea1e8ba9b cleanup(common): Remove rarely used pv_cat_cmd
Its single use is in build_common and even then having a little progress
bar for copying images isn't that interesting, they just get lost in the
noise of the emerge output. Keep it simple, use cp.
2013-07-26 22:40:59 -04:00
Brandon Philips
6b603ae9ef Merge pull request #64 from marineam/rename-dev
fix(*): Rename dev image to coreos_developer_image.bin
2013-07-26 19:27:11 -07:00
Michael Marineau
42a4536d7d fix(*): Rename dev image to coreos_developer_image.bin
Remove hard-coded references and unused scripts that mentioned it.
2013-07-26 22:12:10 -04:00
Michael Marineau
17736820bd Merge pull request #63 from marineam/rel
fix(master_release): Fix default branch to pull from, fetch evyerhing.
2013-07-26 18:38:28 -07:00
Michael Marineau
27af72359e fix(master_release): Fix default branch to pull from, fetch evyerhing. 2013-07-26 21:27:18 -04:00