Commit Graph

3767 Commits

Author SHA1 Message Date
Alex Crawford
d8e808c061 oem/ami: update tests for etcd2
The v1 API has been removed, so use v2 instead. The 10-second sleep was
added because the fleet tests were failing without it. My guess is that
etcd needed some time to warm up before we flooded it with requests.
2015-03-25 22:42:25 -07:00
Michael Marineau
798d9087fb Merge pull request #386 from marineam/fsck
disk_util: include fsck output during resize operation
2015-03-25 14:31:29 -07:00
Michael Marineau
07fc135a12 disk_util: include fsck output during resize operation
Previously fsck output was suppressed to reduce the amount of noise in
build logs on the assumption that fsck really shouldn't have a reason to
fail. The filesystem is freshly created after all. However some users
have reported that fsck is failing but without error messages we don't
know why.
2015-03-25 14:16:15 -07:00
Michael Marineau
5be55a6898 Merge pull request #385 from marineam/licenses
build_image_util: generate package license list for each image
2015-03-24 18:37:46 -07:00
Michael Marineau
3b8cf7d1fb build_image_util: generate package license list for each image
There isn't a sane way for users to know the licenses of individual
packages in CoreOS images in built images. The information is hidden
away back in the original ebuilds. This extends our existing package
list with a new file that also includes licenses:

```
app-admin/flannel-0.3.0-r3::coreos Apache-2.0
app-admin/fleet-0.9.1::coreos Apache-2.0
app-admin/locksmith-0.2.3::coreos Apache-2.0
app-admin/sdnotify-proxy-0.1.0::coreos Apache-2.0
app-admin/sudo-1.8.10_p2::portage-stable ISC BSD
app-admin/toolbox-0.0.0-r4::coreos Apache-2.0
app-arch/bzip2-1.0.6-r6::portage-stable BZIP2
app-arch/gzip-1.5::portage-stable GPL-3
app-arch/tar-1.27.1-r2::portage-stable GPL-3+
...
```
2015-03-24 18:10:45 -07:00
Michael Marineau
e235fb5f9f Merge pull request #384 from marineam/loop
build_packages: add support breaking loops with multiple use flags
2015-03-18 12:06:40 -07:00
Michael Marineau
03411ad4d8 build_packages: add support breaking loops with multiple use flags
Sorry, this is just getting bad. We need to switch to initializing the
board root stage3 style, similar to how the SDK or most any
semi-complicated Gentoo install starts. Breaking loops while merging
into a clean root is just too complicated.

On what this does: util-linux now has a udev *and* a systemd use flag.
Since we use systemd they both are effectively the same and pull in the
systemd package. This adds support for disabling both flags during the
loop breaking procedure.
2015-03-18 11:59:25 -07:00
Nick Owens
a4fd6a62f6 Merge pull request #383 from mischief/diskless-groupname
vm_image_util.sh: use correct group name in production images with no writeable /etc
2015-03-02 17:16:50 -08:00
mischief
7d2ee0e33c vm_image_util.sh: use correct group name in production images with no writeable /etc 2015-03-02 17:13:24 -08:00
techdragon
79ce0a3304 Enhanced dev_image_util with equivalent to --base_pkg
- "./build_image prod" already has the ability to specify which package will specify all the packages that should be pulled in and built into an image by specifying a package name using the --base_pkg command line flag. This creates an equivalent option for "./build_image dev" creating a --base_dev_pkg flag that passes a package name into the create_dev_img() function in dev_image_util.sh the same way that --base_pkg is passed into create_prod_image() inside prod_image_util.sh.
2015-03-02 13:21:56 +08:00
Alex Crawford
f26b209ab7 Merge pull request #378 from crawford/azure
oem/azure: add more image-publishing functionality
2015-02-27 18:05:32 -08:00
Alex Crawford
80e887dd8a oem/azure: add share-image.sh 2015-02-27 16:47:45 -08:00
Alex Crawford
4fa2583d7c oem/azure: add publish.sh 2015-02-27 16:47:45 -08:00
Alex Crawford
08f2d4cd23 oem/azure: add replicate-image.sh 2015-02-27 16:47:45 -08:00
Alex Crawford
9cd1553286 oem/azure: add unreplicate-image.sh 2015-02-27 16:47:45 -08:00
Alex Crawford
998c7e0939 oem/azure: set more image metadata 2015-02-27 16:47:45 -08:00
Alex Crawford
f60f0631bf oem/azure: fix json parsing of azure cli output 2015-02-27 16:47:45 -08:00
Michael Marineau
cb39e2169b Merge pull request #380 from skarllot/master
Updated VirtualBox script for new releases
2015-02-27 15:10:51 -08:00
Alex Crawford
0c00bca4fc Merge pull request #371 from Cygnus-Labs/auto-symlink-repo-configs
Auto symlink repo configs
2015-02-24 17:25:29 -08:00
techdragon
d3f29195b6 Repo Dir Auto-Symlinking
- Automatically symlink any provided portage repo configurations into
  the appropriate destination directory from "config/portage/repos".
2015-02-24 23:54:43 +08:00
Alex Crawford
92e8c90666 Merge pull request #381 from crawford/cloudsigma
vm_image_util: add cloudsigma
2015-02-18 18:34:20 -08:00
Fabrício Godoy
844b091671 Updated VirtualBox script for new releases
Changes to handle stable, beta and alpha special versions.
Fixed to always import GPG key from official CoreOS web page.
2015-02-17 00:46:07 -02:00
Alex Crawford
6013d8acc0 vm_image_util: add cloudsigma 2015-02-13 23:50:05 -08:00
Michael Marineau
5fdcb81ae9 Merge pull request #379 from marineam/inodes
disk_util: allocate the maximum number of usable inodes
2015-02-11 17:33:09 -08:00
Michael Marineau
d09aeb368c disk_util: allocate the maximum number of usable inodes
This change changes the default 'bytes-per-inode' ration from 16K to 4K,
the block size. To prevent this from wasting too much space change the
inode size from the default 256 to the minimum size, 128. Larger inodes
are used to store extended attributes more efficiently but since we do
not use SELinux the majority of files do not have security attributes.

These defaults may be modified via the new `bytes_per_inode` and
`inode_size` options.
2015-02-11 17:12:18 -08:00
Alex Crawford
f5ec568cee Merge pull request #376 from crawford/json
oem/ami: fix ami_all.json
2015-02-06 18:09:31 -08:00
Alex Crawford
64b10c1faf oem/ami: fix ami_all.json
This was not a valid json document before. Actually make this an object.
2015-02-06 14:13:54 -08:00
Michael Marineau
e4e847dc10 Merge pull request #375 from marineam/toolchain
toolchain_util: fix parsing emerge --pretend output
2015-01-28 17:02:51 -08:00
Michael Marineau
d0da252d49 toolchain_util: fix parsing emerge --pretend output
Fix parsing the following output:

    [ebuild  N    ] dev-libs/gmp-5.1.3-r1 to /usr/x86_64-cros-linux-gnu/
    [ebuild     UD] sys-libs/timezone-data-2013d [2014i-r1] to /usr/x86_64-cros-linux-gnu/

The previous regex did not account for upgrades and got confused by the
`[2014i-r1]` listing and goobbled up too much of the string. I am not
sure *why* portage is reporting an upgrade when --emptytree is also used
but there it is. Match all not-] characters instead.
2015-01-28 16:37:52 -08:00
Alex Crawford
103a146c10 Merge pull request #374 from crawford/docs
build_library: add extract_docs()
2015-01-16 13:12:38 -08:00
Alex Crawford
db1f826632 build_library: add extract_docs() 2015-01-16 13:12:21 -08:00
Michael Marineau
645181d044 Merge pull request #372 from marineam/ext4
disk_layout: switch to ext4 as the default root filesystem.
2015-01-12 14:12:46 -08:00
Michael Marineau
5387e8179b Merge pull request #373 from marineam/ccache
catalyst: disable ccache and autoresume
2015-01-08 16:41:17 -08:00
Michael Marineau
5c7a101bfe catalyst: disable ccache and autoresume
Disable ccache as it is causing issues in other builds so disable it
everywhere to be safe. Disable the autoresume feature because our build
process doesn't actually make use of it.
2015-01-08 16:17:26 -08:00
Michael Marineau
6b23aabcda disk_layout: switch to ext4 as the default root filesystem.
A brief summary: https://lwn.net/Articles/627232/ ;-)
2015-01-08 12:54:54 -08:00
polvi
c6481e6aa7 Merge pull request #369 from polvi/add_base
build_image: add ability to pick different base package
2015-01-02 15:09:45 -05:00
Alex Polvi
1854bc2028 build_image: add ability to pick different base package 2015-01-02 15:07:52 -05:00
Alex Crawford
9435772269 Merge pull request #367 from crawford/icon
oem/azure: add set-image-icon.sh
2014-12-24 18:22:18 -08:00
Alex Crawford
7d916b812a oem/azure: add set-image-icon.sh 2014-12-24 18:21:26 -08:00
Michael Marineau
66a90f7851 Merge pull request #368 from marineam/sdk
bootstrap_sdk: prune extra files from SDK tarballs
2014-12-23 17:45:52 -08:00
Michael Marineau
4b1a608c2e bootstrap_sdk: prune extra files from SDK tarballs
stage1/2/3 tarballs automatically prune things like /usr/portage but
stage4 does not. Add explicit rules to prune extra cruft.
2014-12-23 17:07:45 -08:00
Michael Marineau
b1a46478f7 Merge pull request #366 from higebu/niftycloud-ovf
vm_image_util: changed niftycloud format to ovf
2014-12-18 09:05:16 -08:00
Yuya Kusakabe
95f7c37a9d vm_image_util: changed niftycloud format to ovf 2014-12-18 17:22:51 +09:00
Michael Marineau
9ae2e1397f Merge pull request #364 from vmware/open-vmdk
add vmware_ova to image formats
2014-12-17 14:58:37 -08:00
Oliver Kurth
bf90db1301 remove autogenerated comment 2014-12-17 14:52:04 -08:00
Michael Marineau
ebc6dbb40b Merge pull request #365 from marineam/catalyst
Catalyst fixes
2014-12-17 14:10:28 -08:00
Michael Marineau
3b40989d52 catalyst: make sure the 'portage' user can write to distfiles and ccache
Adding the update step appears to break permissions on the distfiles
directory. Ensure the portage user is correct and set the permissions on
directories it needs to write to in advance.
2014-12-17 12:46:18 -08:00
Michael Marineau
4debbfc257 catalyst: update GCC dependencies before building stage1
When bootstrapping a SDK we need to update GCC dependencies to ensure
the GCC built for stage1 is linked against the same library versions as
those that are included in the stage1. Without this updating the mpc
library just results in a broken stage1.
2014-12-17 12:44:10 -08:00
Michael Marineau
dd46e12bac Merge pull request #363 from marineam/linux-info
setup_board: export paths to kernel source and build directories
2014-12-15 17:45:33 -08:00
Michael Marineau
690da86333 setup_board: export paths to kernel source and build directories
The linux-info eclass may trigger a fatal error if it is unable to check
a package's required kernel options. Even when the error isn't fatal the
warnings add a lot of clutter to our build output.
2014-12-15 17:08:45 -08:00