30859 Commits

Author SHA1 Message Date
Michael Marineau
b312044172 fix(build_image): Set read-only hack on correct filesystem.
Check if the disk layout is a /usr layout and if so hack the USR-A
partition, not whatever is mounted to /. Also use the new functionality
in disk_util for this as it can look up partitions by label.
2014-01-16 23:23:41 -08:00
Michael Marineau
98101d9a5a add(sys-apps/util-linux): Add patched util-linux to support PARTTYPE
This adds support for PARTTYPE in libblkid so cgpt use it instead of
implementing its own partition probing/searching logic.
2014-01-16 22:04:26 -08:00
polvi
7730b0cf35 Merge pull request #306 from polvi/gmerge-fixup
usr(gmerge): bump to latest dev-util
2014-01-16 17:33:43 -08:00
Alex Polvi
2bf34583ae usr(gmerge): bump to latest dev-util 2014-01-16 17:32:45 -08:00
polvi
9eb32ba98f Merge pull request #305 from polvi/bump-init
usr(init): bump to latest
2014-01-16 10:53:09 -08:00
polvi
4e71b1d83f Merge pull request #304 from polvi/fix-gmerge2
usr(gmerge): use regular /etc/ instead of /usr/local
2014-01-15 20:48:08 -08:00
Alex Polvi
868b5ba1ea fix 9999 ebuild 2014-01-15 20:44:03 -08:00
Alex Polvi
7b8275ee13 usr(init): bump to latest 2014-01-15 20:41:04 -08:00
Alex Polvi
5ca6c35dcd usr(gmerge): use regular /etc/ instead of /usr/local 2014-01-15 20:37:42 -08:00
polvi
1413ed737f Merge pull request #303 from polvi/fix-gmerge
usr(gmerge): install to /usr
2014-01-15 19:35:50 -08:00
Alex Polvi
bdbc05517a remove docs 2014-01-15 19:26:22 -08:00
Alex Polvi
b865810273 usr(gmerge): install to /usr 2014-01-15 19:13:38 -08:00
Brandon Philips
b4e83ff18b Merge pull request #302 from philips/usr-init
feat(coreos-base/coreos-init): add symlink-usr flag support
2014-01-14 17:45:00 -08:00
Brandon Philips
00c4953f9a feat(coreos-base/coreos-init): add symlink-usr flag support
Via https://github.com/coreos/init/pull/34
2014-01-14 17:30:52 -08:00
Michael Marineau
6c7727eacb Merge pull request #301 from marineam/squashfs
bump(bootengine): Update to fix PXE and /usr booting.
2014-01-13 16:01:25 -08:00
Michael Marineau
38d8f4ea5c bump(bootengine): Update to fix PXE and /usr booting. 2014-01-13 15:56:23 -08:00
Brandon Philips
7990d332b1 Merge pull request #300 from philips/docker-0.7.5
feat(app-emulation/docker): bump to docker-0.7.5
2014-01-13 15:10:57 -08:00
Brandon Philips
b07754504f feat(app-emulation/docker): bump to docker-0.7.5 2014-01-13 13:36:18 -08:00
Michael Marineau
7b3a9e6a23 Merge pull request #299 from marineam/fix-boot
fix(sys-kernel/coreos-kernel): Fix initrd in non-usr images.
2014-01-11 15:23:16 -08:00
Michael Marineau
dea2d44b36 fix(sys-kernel/coreos-kernel): Fix initrd in non-usr images.
My fix for /usr broke the normal images because my bash hacking was
overly simplistic. Use dirname to ensure the right thing happens.
2014-01-10 18:50:47 -08:00
Michael Marineau
81da8f0836 Merge pull request #297 from marineam/python
bump(dev-lang/python): Sync with upstream python-2.7.5-r4
2014-01-09 17:18:45 -08:00
Michael Marineau
483992172f Merge pull request #77 from marineam/sandbox
bump(sys-apps/sandbox): sync with upstream
2014-01-09 17:18:32 -08:00
Greg Kroah-Hartman
c31c046554 Merge pull request #298 from marineam/kernel
fix(sys-kernel/coreos-kernel): Fix initramfs in /usr builds.
2014-01-07 06:31:42 -08:00
Greg Kroah-Hartman
bde3c2513f Merge pull request #296 from gregkh/kernel_update
feat(sys-kernel/coreos-kernel) enable CIFS module
2014-01-07 06:31:23 -08:00
Michael Marineau
625f25e70f fix(sys-kernel/coreos-kernel): Fix initramfs in /usr builds.
Properly handle when /lib in bootengine is a symlink to /usr/lib64 in
addition to the /lib64. mv needs /usr to exist first :)
2014-01-07 02:18:28 -08:00
Michael Marineau
d19f338d0f bump(dev-lang/python): Sync with upstream python-2.7.5-r4
Copy of upstream 2.7.5-r4 + cross compile tweaks/fixes from our -r2
Dropped some sed hackery related to ChromiumOS's /usr/local weirdness.
I am hoping that issue18851.patch fixes some intermittent build issues.
2014-01-06 21:36:44 -08:00
Michael Marineau
69c258cd8f bump(sys-apps/sandbox): sync with upstream 2014-01-06 20:35:57 -08:00
Greg Kroah-Hartman
0026fe16ad feat(sys-kernel/coreos-kernel) enable CIFS module 2014-01-06 18:47:21 -08:00
Greg Kroah-Hartman
fea1d294e0 Merge pull request #295 from philips/disable-audit-in-the-kernel
fix(sys-kernel/coreos-kernel): disable audit
2014-01-06 18:36:01 -08:00
Brandon Philips
3821231b7b fix(sys-kernel/coreos-kernel): disable audit
We don't have or use auditd and this break nspawn with fedora
containers. Just remove it.
2014-01-06 14:48:19 -08:00
Michael Marineau
007ab712bf Merge pull request #148 from marineam/switch-usr
Experimantal amd64-usr board and disk layouts
2014-01-05 20:39:35 -08:00
Michael Marineau
a63b07ea76 Merge pull request #147 from marineam/disk_util
New approach to disk/partition handling, disk_util
2014-01-05 20:37:38 -08:00
Michael Marineau
0fba2d0a96 Merge pull request #294 from marineam/switch-usr
fix(make.conf): Don't share binary packages between boards.
2014-01-05 18:56:55 -08:00
Michael Marineau
8418179ff4 fix(build_library): Add amd64-usr board and disk layouts.
The basic infrastructure to support this is now in place. Add a new
board that uses the experimental coreos/amd64/usr profile /usr based
disk layouts. This is just enough to successfully build images, they
aren't bootable yet.
2014-01-05 18:39:47 -08:00
Michael Marineau
e84f922ba5 fix(build_library): remove references to chromeos-common.sh
Nothing from chromeos-common.sh is needed for image building now. Also
kill off build_common.sh which was just a weird way of sourcing
common.sh. The two piddly functions it provided fit better in
build_image_util.sh
2014-01-05 18:39:47 -08:00
Michael Marineau
96da63e87e fix(create_legacy_bootloader_templates.sh): Support -usr layouts
The boot kernel parameters change depending on whether the new /usr
scheme is in use. Pass the disk layout to the bootloader config script
and adjust generated configs accordingly.
2014-01-05 18:39:47 -08:00
Michael Marineau
19ecd4572f fix(disk_util): Sort mount order instead of special casing /
Now that /usr is a mount point we need to make sure it gets mounted
before /usr/share/oem. Simply sorting by path length works well enough.
2014-01-05 18:39:47 -08:00
Michael Marineau
bfe47817e4 fix(build_image): Add support for COREOS_DISK_LAYOUT_SUFFIX
Append COREOS_DISK_LAYOUT_SUFFIX from the portage profile to disk layout
names. Allows switching from "base" to "base-usr" and similar.
2014-01-05 18:39:47 -08:00
Michael Marineau
8ea698435d fix(make.conf): Don't share binary packages between boards.
Although it'd be nice to re-use packages for experimental boards that
may only have a few differences from amd64-generic there is a bug in
some ebuilds and portage that break sharing binary packages between
different values of $ROOT. This prevents that from happening by
accident.

https://bugs.gentoo.org/show_bug.cgi?id=490014
2014-01-05 16:43:45 -08:00
Michael Marineau
6d719f9d03 Merge pull request #293 from marineam/switch-usr
feat(profiles): Add coreos/amd64/usr profile.
2014-01-05 15:44:50 -08:00
Michael Marineau
c1e8a96cda feat(profiles): Add coreos/amd64/usr profile.
This profile enables the symlink-usr USE flag and target profiles have a
new variable COREOS_DISK_LAYOUT_SUFFIX that allows the profile to switch
to a different set of disk layouts. By default no suffix is used but the
usr profile uses layouts with the suffix "-usr" such as "base-usr".
2014-01-05 14:14:31 -08:00
Michael Marineau
ba532952b1 fix(disk_util): Fix layout inheritance in config verification. 2014-01-05 13:55:52 -08:00
Michael Marineau
3546256597 fix(vm_image_util): Unmount STATE before making squashfs 2014-01-04 21:39:31 -08:00
Michael Marineau
15eead682b cleanup(build_library): Remove old disk_layout_util.sh
All of this code can go away now.
2014-01-04 21:17:06 -08:00
Michael Marineau
bfcbb3f57f fix(image_to_vm): Move to disk_util, modify images in-place.
Avoid unpacking/repacking partitions by using disk_util's resize and
mount commands. Also simplify assorted bits along the way.
2014-01-04 21:00:45 -08:00
Michael Marineau
e066f91ca3 feat(disk_util): Add tune command, controlling fs read-only hack.
Now disk_util is aware of the weird ext2 read-only hack, both by
providing a command to manipulate it and support in the mount command to
automatically set the 'ro' mount option for filesystems with it.

Making mount aware of the hack makes it much easier to mount prod
images with a mix read-only and read-write filesystems.
2014-01-04 21:00:45 -08:00
Michael Marineau
89b61ac7b0 fix(disk_util): Rework how code handles existing images.
Read partition size and offset into the normal partition config with the
prefix 'image_' for each key.
2014-01-04 21:00:45 -08:00
Michael Marineau
1ee1840a89 fix(disk_util): Fix mount --read_only option. 2014-01-04 16:55:03 -08:00
Michael Marineau
c992d45dd3 feat(disk_util): Add resize command.
Based on the new gpt update code add the ability to resize filesystems
in existing images. Usually just the last (STATE) partition is resized.
2014-01-03 18:14:12 -08:00
Michael Marineau
ebc83599b3 fix(disk_util): Move loop device setup code to generic function 2014-01-03 17:59:15 -08:00