Commit Graph

2650 Commits

Author SHA1 Message Date
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
Michael Marineau
5375057c86 Merge pull request #62 from marineam/lbzip2
fix(cros_sdk): Support using lbzip2 during chroot creation.
2013-07-26 16:46:58 -07:00
Michael Marineau
ca6415dc89 fix(cros_sdk): Support using lbzip2 during chroot creation.
Our SDK tarballs aren't compressed using pbzip2 so there is no advantage
to using pbzip2 to decompress them over bzip2, however lbzip2 does offer
a big advantage. Also trust that the portage config defines a valid
version of bzip2 since we have control over the tarball creation and can
make sure to always include required utilities.
2013-07-26 18:31:18 -04:00
Michael Marineau
6697c05d0a Merge pull request #61 from marineam/vm_upload
Vm upload
2013-07-26 15:18:04 -07:00
Michael Marineau
37c56b64de feat(build_ebs_on_ec2): Fetch prod images by version, misc cleanup.
The build host will start generating production ami disk images so to
simplify the next step this script can automatically fetch them from
that location by version. The default sticks with the existing 'master'
versioning scheme. Added logging and turned off -x by default to make
the output log more readable.

Removing the zip_and_ship script since it isn't useful with officially
built disk images and only works with locally built images and a very
particular ec2 host. A different long term automation scheme will have
to be found.
2013-07-26 17:45:27 -04:00
Michael Marineau
c5cd245603 feat(image_to_vm): Add support for uploading vm images
After this I can make production AMI images available for download! :-D
2013-07-26 16:31:11 -04:00
Brandon Philips
ecb8ea259c Merge pull request #60 from philips/move-stateful-around
Move stateful around
2013-07-26 11:33:59 -07:00
Brandon Philips
3b30f8def3 fix(build_library): symlnks to stateful
add backward compat symlinks to the stateful directory
2013-07-26 10:20:29 -07:00
Brandon Philips
be72d56a50 fix(*): move dev_image to overlays
put the dev_image in overlays/usr/local
2013-07-26 10:20:18 -07:00
Brandon Philips
ca0b25028e Merge pull request #59 from philips/remove-container-stuff
chore(build_library): remove container library
2013-07-26 08:51:53 -07:00
Brandon Philips
cf8be2c320 fix(*): use /media/state and overlays dir
/mnt/stateful_partition was already a little unruly with
/mnt/stateful_partition/home and /mnt/stateful_partition/var_overlay
serving similar functional purposes.

Then we needed to also add /opt and /srv overlays.

I also have wanted to get rid of the ugly and weird
/mnt/stateful_partition name so lets just have one big move.

/mnt/stateful_partition -> /media/state
/mnt/stateful_partition/var_overlay -> /media/overlays/var
/mnt/stateful_partition/home -> /media/overlays/home

From there we add /media/overlays/srv and /media/overlays/opt
2013-07-26 08:44:47 -07:00
Brandon Philips
0ece58228f chore(*): remove unused scripts
bin/cros_update_image.sh
  cros_show_stacks
  image_to_usb.sh
  make_netboot.sh
  mod_image_for_recovery.sh
  update_kernel.sh
2013-07-26 08:40:32 -07:00
Brandon Philips
141d488da6 chore(build_library): remove container library
This is no longer used. It was used to debug early boot problems early
on.
2013-07-26 05:35:20 -07:00
polvi
7ed28ac286 Merge pull request #58 from marineam/baselayout
Baselayout/release file fixes
2013-07-25 21:14:35 -07:00
Michael Marineau
2acc703cc8 fix(set_lsb_release): Spelling is for suckers 2013-07-26 00:02:11 -04:00
Michael Marineau
9ed620c277 fix(build_image): Fix baselayout install in final images.
The basic system directory structure including the lib symlinks were
fixed for sysroot in the following commits but the image build uses an
entirely different bit of code to do the exact same set of hacks. Port
those changes to the image building code to hopefully make all happy.

2ae0c30f4e
ac931bd088
2013-07-25 23:22:12 -04:00