30859 Commits

Author SHA1 Message Date
Michael Marineau
805cc65ffd fix(disk_util): Add option to safely rewrite partition table.
write_gpt --update <img> will read an existing image and make sure all
existing partitions will not get moved or truncated in the new layout.
This is mostly useful for resizing the final partition or just rewriting
metadata like partition types and labels.
2014-01-03 16:40:54 -08:00
Michael Marineau
5afd720956 fix(disk_util): Move existing image reading code to new function.
This will allow the code to be shared, making it possible to safely
resize existing images with disk_util.
2014-01-03 16:40:21 -08:00
Brandon Philips
d7b07174ba Merge pull request #292 from philips/docker-0.7.3
feat(app-emulation/docker): add docker-0.7.3
2014-01-03 16:35:59 -08:00
Brandon Philips
320b00ffa0 feat(app-emulation/docker): add docker-0.7.3 2014-01-03 16:30:27 -08:00
Michael Marineau
af94b1d6e0 Merge pull request #291 from marineam/firmware
Moar Firmware!
2014-01-03 13:35:08 -08:00
Michael Marineau
cf45f525df add(sys-kernel/coreos-firmware): Add firmware package.
This provides firmware from linux-firmware but excludes everything not
explicitly required by coreos-kernel. Note that firmware installed by
this will only be available on the root filesystem, the initrd still
uses the smaller set of firmware the linux repo provides.

The current 3.12 kernel wants a few files missing in the July snapshot:

 * Missing firmware: ct2fw-3.2.1.1.bin (bna.ko)
 * Missing firmware: ctfw-3.2.1.1.bin (bna.ko)
 * Missing firmware: cxgb4/t5fw.bin (cxgb4.ko)

These files have been added to the linux-firmware repo so a newer
snapshot will be required but for now I'm sticking with what is already
in Gentoo so I don't have to generate my own tarball or whatever.
2014-01-03 12:54:54 -08:00
Michael Marineau
6e4bc8d9c1 fix(sys-kernel/coreos-kernel): Don't install firmware to root filesystem
In preparation for moving to using firmware provided by the
linux-firmware repository instead of linux the kernel ebuild needs to
stop installing the files to avoid conflicts. Also to better ensure that
the firmware package gets rebuilt every time the kernel does bump to
EAPI=5 and set the subslot to the ebuild version/revision. The firmware
package can then depend on the kernel w/ a special slot operator to make
sure it gets rebuilt when the kernel version changes. The firmware
package can then scan the installed modules and only install the
firmware that is required.

(Portage automatic rebuild behavior often makes this sort of rebuild
happen anyway but using subslots makes it a strict requirement.)
2014-01-03 12:40:42 -08:00
Michael Marineau
d3bfcc7823 fix(cros-workon.eclass): Fix support for EAPI=5 subslots
The subslot should not be used as part of package name directories.
This fixes the kernel builds now that cros-kernel2 uses subslots.
2014-01-03 12:40:42 -08:00
Michael Marineau
340ce65bc8 fix(sys-kernel/coreos-kernel): Drop old no-modules kernel. 2014-01-03 12:36:01 -08:00
Michael Marineau
0774cd0837 Merge pull request #289 from marineam/fix-ssh
bump(coreos-base/coreos-init): Fix bogus ssh_config
2014-01-03 11:53:52 -08:00
Brandon Philips
a418dcd569 Merge pull request #290 from gregkh/kernel_update
bump(sys-kernel/coreos-kernel): bump to 3.12.6
2014-01-03 10:46:31 -08:00
Greg Kroah-Hartman
b7bd408b7e bump(sys-kernel/coreos-kernel): bump to 3.12.6 2014-01-02 21:23:53 -08:00
Michael Marineau
06dbb9476d bump(coreos-base/coreos-init): Set EDITOR=/usr/bin/vim 2014-01-02 17:17:24 -08:00
Michael Marineau
b1aa0c9e52 bump(coreos-base/coreos-init): Fix bogus ssh_config
Bump to include https://github.com/coreos/init/pull/32
Fixes https://github.com/coreos/coreos-vagrant/issues/33
2014-01-02 16:44:25 -08:00
Michael Marineau
fb6393d667 Merge pull request #287 from marineam/symlink-usr
A few /usr related fixes
2014-01-02 16:42:04 -08:00
Brandon Philips
e8ec4c9fb0 Merge pull request #288 from gregkh/kernel_update
bump(sys-kernel/coreos-kernel): add some SATA driver support.
2014-01-02 12:26:20 -08:00
Greg Kroah-Hartman
79b603dfc6 bump(sys-kernel/coreos-kernel): add some SATA driver support.
Should resolve #279
2013-12-30 21:09:55 -08:00
Michael Marineau
d85b14db00 add(sys-libs/nss-usrfiles): nss module for files under /usr/share/nss 2013-12-30 16:43:34 -08:00
Michael Marineau
8e0d630699 fix(image_to_vm): Remove support for alternate state fs image.
We haven't really needed this, remove the option to simplify things.
2013-12-30 16:32:37 -08:00
Michael Marineau
213472652c add(prod_image_util): Rename what remains of cros_make_image_bootable
cros_make_image_bootable now only is relevant for prod images, so move
the remaining code to prod_image_util in a similar scheme that base and
dev images use.
2013-12-30 16:12:44 -08:00
Michael Marineau
306a2f6cbc fix(cros_make_image_bootable): Switch to disk_util mount/umount 2013-12-30 16:12:44 -08:00
Michael Marineau
e2c2271579 fix(create_legacy_bootloader_templates): Setup ESP partition.
Replace "update_bootloaders" script.
2013-12-30 16:12:43 -08:00
Michael Marineau
359505490d fix(disk_util): Install syslinux as part of filesystem formatting.
This means scripts later don't need to deal with the ESP block device
directly, they can just copy the config files into place.
2013-12-30 16:12:43 -08:00
Michael Marineau
d1fee3653e fix(cros_make_image_bootable): Remove dead command line flags.
Lots of things are either unused or meaningless. A particularly creative
one is the fact that there are command line flags for mount point
locations that are then overwritten.
2013-12-30 16:12:43 -08:00
Michael Marineau
52e1dba3ec fix(build_image): Migrate to new disk_util commands 2013-12-30 16:12:43 -08:00
Michael Marineau
9bc36ee344 fix(base_image_util): Remove dead code, leave rootfs writable.
The verification flag was being passed through to the bootloader
template script but no longer had any effect.
Force the base image to always remain writable, its only purpose is to
be modified in a later build step anyway.
2013-12-30 16:12:41 -08:00
Michael Marineau
8ca62121d9 feat(disk_util): Add mount and unmount commands.
This will replace the assorted mix of mount/umount scripts.
2013-12-30 16:12:04 -08:00
Michael Marineau
ba45152b4b feat(disk_util): Add 'format' command to create filesystems in an image.
This will replace the less flexible code in base_image_util.sh
2013-12-30 16:12:04 -08:00
Michael Marineau
ab23353448 fix(disk_util): Rework config parsing.
Merge GetPartitionTable and partition alignment from WritePartitionTable
into LoadPartitionConfig so that all this config manipulation code is in
one place and inheritance from the 'base' layout is more predictable.
2013-12-30 16:12:04 -08:00
Michael Marineau
0f4b52134a fix(disk_util): Convert partition list to an object.
Hey, 'num' is a primary key! Lets use it and avoid pointless looping.
2013-12-30 16:12:04 -08:00
Michael Marineau
576c8996f4 fix(disk_util): Remove support for --adjust_part
This isn't a feature we've been using as far as I know and if someone
needs a custom partition layout it's probably better to just add it to
the json file. Removing this avoids some complexity.
2013-12-30 16:12:02 -08:00
Michael Marineau
cc341f856b fix(disk_util): Merge write_mbr into write_gpt
No need for this to be a different command.
2013-12-30 16:10:46 -08:00
Michael Marineau
de9ff4fc8e fix(disk_util): Rework how argument parsing/passing works.
Move from optparse to argparse. Move layout file and layout type to
global options with reasonable default values so every command doesn't
need to them. Adjust calling scripts to match.

For now layout type is being passed via an environment variable
DISK_LAYOUT_TYPE but this is a temporary situation.
2013-12-30 16:10:46 -08:00
Michael Marineau
fdefbf704c add(disk_util): Rename cgpt.py to disk_util.
Use a more generic name so cgpt.py and disk_layout_util.sh can be merged
into one tool. Wrappers around wrappers around wrappers are tedious.
2013-12-30 16:10:46 -08:00
Michael Marineau
ba5f044fe4 remove(coreos-base/chromeos-auth-config): Unused passwd hackery
This appears to be part of a scheme to set an alternative login password
in ChromeOS that we have not been using. Our solution will be to make
/etc read-write so this can just go away.
2013-12-30 16:08:11 -08:00
Michael Marineau
d03376f5c3 fix(coreos-base/coreos): Remove rsyslog
We don't actually enable it and journald is more awesome anyway.
2013-12-30 16:08:11 -08:00
Michael Marineau
2a6ef1ad8f fix(sys-libs/ncurses): Remove terminfo from /etc w/ symlink-usr
Existing behavior remains unchanged if symlink-usr is unset, otherwise
leave terminfo alone (if minimal is also unset) or prune terminfo down
to the set that would have been installed to /etc if minimal is set.
2013-12-30 16:08:11 -08:00
Michael Marineau
6fc956aa1e bump(sys-libs/ncurses): Sync ebuild with current upstream version 2013-12-30 16:08:11 -08:00
Michael Marineau
4c0e511348 Merge pull request #145 from marineam/symlink-usr
fix(test_image_content): Improve /usr symlink and conflict tests.
2013-12-30 15:43:18 -08:00
Brandon Philips
defe333a33 Merge pull request #286 from philips/etcd-0.2.0
bump etcd and etcdctl
2013-12-23 23:26:47 -08:00
Brandon Philips
58a6bf6d7a fix(dev-db/etcd): set name in bootstrap
by default set the name of the etcd machine to the `${HOSTNAME}`
2013-12-23 23:22:19 -08:00
Brandon Philips
969ec91d6e feat(dev-db/etcdctl): bump 0.2.0 2013-12-23 22:59:44 -08:00
Brandon Philips
ae01d59251 feat(dev-db/etcd): add etcd 0.2.0 2013-12-23 11:15:16 -08:00
Brandon Philips
79fbbfebbd Merge pull request #76 from philips/bump-go
bump(dev-lang/go): sync with upstream
2013-12-21 14:20:32 -08:00
Brandon Philips
15707eccdb Merge pull request #284 from philips/bump-go
fix(package.accept_keywords): accept go-1.2
2013-12-21 14:20:19 -08:00
Brandon Philips
64281470b5 Merge pull request #285 from philips/docker-0.7.2
bump(app-emulation/docker): bump to 0.7.2
2013-12-21 14:20:13 -08:00
Brandon Philips
1653ed95ee bump(app-emulation/docker): bump to 0.7.2 2013-12-20 19:06:48 -08:00
Brandon Philips
2455297fe6 fix(package.accept_keywords): accept go-1.2 2013-12-20 19:03:08 -08:00
Brandon Philips
e1d2330aa2 fix(package.accept_keywords): accept go-1.2 2013-12-20 18:58:07 -08:00
Brandon Philips
d949a5b662 bump(dev-lang/go): sync with upstream 2013-12-20 18:56:34 -08:00