Commit Graph

3708 Commits

Author SHA1 Message Date
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
Michael Marineau
66a954efa9 Merge pull request #361 from marineam/grub
grub: search for OEM by partition label instead of filesystem label
2014-12-15 11:27:54 -08:00
Michael Marineau
ebf77d4fdd grub: search for OEM by partition label instead of filesystem label
Probing all filesystem types on all block devices appears to hang
booting Amazon EC2 HVM instances. The console output is unreliably
buffered so there is no information on what the failure actually is. On
the up side we can work around it easily by only searching the GPT which
appears to be safe.
2014-12-15 02:22:42 +00:00
Michael Marineau
7346dc1caa Merge pull request #356 from higebu/niftycloud
vm_image_util: add niftycloud
2014-12-13 16:45:27 -08:00
Yuya Kusakabe
44adc99dc6 vm_image_util: add niftycloud 2014-12-13 12:14:19 +09:00
Michael Marineau
8fe13fb68a Merge pull request #360 from marineam/usr
grub: use new mount.usr kernel command line args
2014-12-08 20:53:06 -08:00
Michael Marineau
a45ba5dc5e grub: use new mount.usr kernel command line args 2014-12-08 18:14:10 -08:00
Michael Marineau
3a94b02f1d Merge pull request #359 from marineam/grub
grub: the one bootloader to rule them all
2014-12-08 11:46:27 -08:00
Michael Marineau
ac169700a9 vm_image_util: remove kexec/boot_kernel configuration
No longer applicable with the new bootloader setup.
2014-12-05 16:52:21 -08:00
Michael Marineau
fe9db4157b vm_image_util: add qemu_xen image type for testing
To aid testing things under Xen it helps to have a machine locally that
actually runs Xen! This isn't a particularly great setup but it works
well enough to simplify my own testing. Must be used with a developer
image and packages built with `USE=vm-testing` set to include the Xen
userspace tools.
2014-12-05 16:51:11 -08:00