Commit Graph

5244 Commits

Author SHA1 Message Date
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
Michael Marineau
d443daa168 grub: the one bootloader to rule them all
This uses our new GRUB2 features to handle GPT priority partition
selection, terminal selection, OEM tweaks, etc. The old SYSLINUX and
PV-GRUB configs are now unused except for maintaining compatibility
with older installs. Of the old configs only the ones that
coreos-postinst copies are needed. The new setup supports using GRUB2
under Xen, giving us automatic fallback support on all of our platforms
for the very first time!

Since grub.cfg is copied into place instead of generated, build_image's
--boot_args option is no longer supported. It could be re-added later
with some sed goo but for now it is easy enough to just edit grub.cfg.
2014-12-05 16:51:11 -08:00
Michael Marineau
52872481f5 Merge pull request #358 from marineam/mtab
build_library: make sure /etc/mtab is correct before modifying images
2014-12-05 16:44:23 -08:00
Oliver Kurth
735e811a31 add vmware_ova to image formats 2014-12-04 16:19:23 -08:00
Michael Marineau
729f9da872 common: make sure /etc/mtab is correct before mounting anything
If mtab ever gets replaced by a regular file all sorts of things break.
2014-12-03 16:30:19 -08:00
Alex Crawford
bfd3747f60 Merge pull request #357 from crawford/azure
vm_image_util: use only ttyS0 for the console on Azure instances
2014-12-01 15:12:33 -08:00
Alex Crawford
4d6a8aaf08 vm_image_util: use only ttyS0 for the console on Azure instances 2014-12-01 14:54:57 -08:00
Alex Crawford
5efe824a70 Merge pull request #355 from crawford/ami
scripts/oem/ami: fix bad array subscript
2014-11-17 15:40:16 -08:00
Michael Marineau
4c7b01ecec Merge pull request #354 from marineam/verity
Compute verity hashes of /usr filesystem
2014-11-17 17:35:37 -06:00
Michael Marineau
204f0024fb Merge pull request #353 from marineam/gptprio
disk_util: Set priority and successful attributes in new images
2014-11-17 17:25:50 -06:00
Alex Crawford
febf7a064e scripts/oem/ami: fix bad array subscript
Broken in 8abceaa20e.
2014-11-17 11:57:46 -08:00
Michael Marineau
3587784bc4 disk_util: Add support for computing verity hashes 2014-11-15 18:58:10 -08:00
Michael Marineau
931610d5bb disk_util: Set priority and successful attributes in new images
Mark the initial copy of CoreOS as 'successful' and with a non-zero
priority. Required to boot with a stricter interpretation of the
partition selection scheme which ignores partitions that have a priority
of zero. The new grub implementation follows this rule and is what the
original ChromeOS spec used too.

For the sake of completeness if multiple partitions are configured in
the json file with this feature they will be prioritized in disk-order.
2014-11-15 16:01:25 -08:00
Michael Marineau
96d11eb03b Merge pull request #351 from marineam/secure
A pile of goo to support a minimal secure boot demo
2014-11-07 17:43:06 -08:00
Michael Marineau
be01d92415 Merge pull request #352 from mboersma/use-vagrant-virtio
virtualbox_ovf.sh: use virtio network interfaces
2014-11-07 16:54:13 -08:00