Commit Graph

800 Commits

Author SHA1 Message Date
Michael Marineau
e0244428fb fix(profiles): Move INSTALL_MASK from common.sh to profiles.
This one isn't used by default, only when building final images like so:

    export INSTALL_MASK=$(portageq-$BOARD envvar PROD_INSTALL_MASK)
2013-12-01 13:59:57 -08:00
Michael Marineau
da1f605863 fix(profiles): Move default INSTALL_MASK to profiles.
The INSTALL_MASK is altered all over the place, clean it up by moving
all of it to profiles. Add /usr/share/{i18n,locales} to exclude those
installed by glibc since it doesn't have a nls use flag to disable them.
2013-11-29 21:28:31 -08:00
Michael Marineau
485f519a51 fix(coreos-base/coreos-base): Remove nsswitch.conf
Provided by glibc now that it is being installed properly.
2013-11-29 19:54:23 -08:00
Michael Marineau
640c2e354e Merge pull request #264 from marineam/dracut
Dracut
2013-11-27 14:44:33 -08:00
Michael Marineau
0de4520683 bump(sys-kernel/bootengine): Include journald config module 2013-11-27 14:40:29 -08:00
Michael Marineau
0c3d7932e3 Merge pull request #266 from marineam/kexec
fix(coreos-base/coreos): Add kexec to base image.
2013-11-27 14:02:32 -08:00
Michael Marineau
17551fb435 fix(coreos-base/coreos): Add kexec to base image. 2013-11-27 13:57:14 -08:00
Jeremiah Orem
71af79a8d5 Fix ebuilds which conflict with symlink-usr.
This pulls in gawk, shadow, and coreutils. These ebuilds created
symlinks in /usr/bin which clobbered the binaries already in /usr/bin.
2013-11-26 23:02:01 -08:00
Michael Marineau
d88abf0853 fix(sys-apps/systemd-sysv-utils): Change install location, not target.
Change the install location based on symlink-usr instead of the target
and use absolute symlinks. We need to move towards never installing to
/{bin,sbin,lib...} and the use of absolute links avoids needlessly
breaking if the symlink-usr flag and the current state of /bin don't
agree (i.e. between flipping the flag and migrating the current files).
2013-11-26 23:01:23 -08:00
Michael Marineau
6e36663e19 fix(profiles): Enable dracut systemd module 2013-11-25 18:03:20 -08:00
Michael Marineau
2c9dfc4494 bump(sys-kernel/dracut): Update to dracut 034-r1
Copy from upstream, minus the sysvinit dependency.
2013-11-25 17:46:31 -08:00
Michael Marineau
0a2ba8b82f Merge pull request #263 from oremj/symlink_usr
Symlink /{bin,sbin,lib64} to /usr/.
2013-11-22 19:03:32 -08:00
Jeremiah Orem
81e4c17d60 Symlink /{bin,sbin,lib64} to /usr/.
This also introduces a new USE flag, "symlink-usr".
2013-11-22 21:58:01 -05:00
Michael Marineau
d4efcd3fe0 Merge pull request #262 from marineam/init
fix(sys-kernel/coreos-kernel): Set systemd as default init.
2013-11-22 14:03:16 -08:00
Michael Marineau
30352e61d2 fix(sys-kernel/coreos-kernel): Set systemd as default init.
This avoid depending directly on the compatibility /sbin/init symlink.
2013-11-22 13:33:08 -08:00
unclejack
eb1ecb525d feat(app-emulation/docker): bump to docker 0.6.7 2013-11-22 12:53:38 +02:00
Michael Marineau
c323a1404f bump(sys-kernel/coreos-kernel): Mark modular kernel as stable 2013-11-21 18:12:10 -08:00
Michael Marineau
ac5693f65b bump(sys-kernel/bootengine): Update for module/failover logic 2013-11-21 18:10:38 -08:00
Michael Marineau
a172ee1ebe bump(coreos-base/vboot_reference): Update cgpt 2013-11-20 23:02:32 -08:00
Michael Marineau
c70802be7f fix(coreos-base/gmerge): Fix ebuild revision 2013-11-19 22:34:14 -08:00
Michael Marineau
f6d211d85a bump(coreos-base/coreos-installer): Update with postinst fixes/cleanups. 2013-11-19 22:30:02 -08:00
Michael Marineau
f87b32d1f7 Merge pull request #257 from marineam/modules
Modules
2013-11-19 17:50:56 -08:00
Alex Polvi
b808a92fff add corectl 2013-11-19 17:43:31 -08:00
Alex Polvi
00c0d7dba4 drop restart 2013-11-19 17:34:29 -08:00
Alex Polvi
5e3fdfd9f6 feat(coreinit): add coreinit to the experimental package, drop systemd-rest 2013-11-19 17:30:43 -08:00
Michael Marineau
4418bd833a fix(sys-kernel/coreos-kernel): Move AT keyboard back to bzImage
As much as I like not seeing the i8042 error in the kernel log on
platforms without it I foresee someone being really ticked off with me
for making this a module when dracut fails without loading the PS/2 and
keyboard modules making the rescue shell kinda hard to use unless a
serial console is also available.

Yeah, well, fair enough future me. You win.
2013-11-19 15:18:15 -08:00
Michael Marineau
42b715c1dd fix(sys-kernel/coreos-kernel): Re-enable gzip (and more) for initramfs
I forgot that we are using gzip'ed cpio images for PXE. Just enable all
the compression methods to avoid similar surprises.
2013-11-19 14:58:22 -08:00
Michael Marineau
864f4680c5 Merge pull request #256 from marineam/modules
Modules
2013-11-19 14:17:40 -08:00
Michael Marineau
bb82a156ea fix(sys-kernel/coreos-kernel): Update modular config, more modules!
Switch more things to modules previously missed (such as SCSI). Clean up
more debug options.
2013-11-19 13:48:39 -08:00
Michael Marineau
35fd55a41a fix(cros-kernel2.eclass): Fix cpio update steps.
The kernel is much more particular about how it handles the cpio format
than GNU's cpio tool. Two things:
 - Don't use the -depth option to find, cpio documentation recommends
   using it (the directory comes after the contents so set the
   permissions on the dir last in case it is overly restrictive) but the
   kernel thinks the other direction and doesn't put things into a
   directory that does not (yet) exist.
 - Don't add anything under /lib which is a symlink in the original
   file. Adding /lib as a directory later replaces the earlier /lib
   symlink. Again the user space tool thinks in the other direction and
   will happily dereference the symlink while extracting, preserving it.

CPIO CPIO CPIO!
2013-11-19 13:36:23 -08:00
Michael Marineau
ffc7f50e94 Merge pull request #255 from marineam/modules
Modules
2013-11-18 13:17:06 -08:00
Michael Marineau
f9a0b52c92 fix(cros-kernel2.eclass): Move build deps from ebuilds to eclass. 2013-11-18 00:35:29 -08:00
Michael Marineau
22190a7bfc bump(sys-kernel/coreos-kernel): New modular kernel.
Lots of changes here, some things of note:
 - Switch from built-in to modules for much of the kernel.
 - Enable more features, mostly in power management and networking.
 - Remove no_firmware.patch, this was added back when we had two
   different kernels which would conflict if both installed firmware.
 - Stop disabling OUTOFTREE_BUILD now that we don't patch the source.

So far this is just compile tested so it is marked ~amd64 for now.
2013-11-18 00:26:57 -08:00
Michael Marineau
0e3d2d202e fix(cros-kernel2.eclass): Fix STRIP_MASK and disable binchecks
STRIP_MASK wasn't updated to the new vmlinux location earlier.
RESTRICT=binchecks disables checks that only make sense for user space
binaries. This silences a bogus scanelf error.
2013-11-17 23:11:54 -08:00
Michael Marineau
0c0df75d69 fix(cros-kernel2.eclass): Disable OUTOFTREE_BUILD when src is dirty.
If OUTOFTREE_BUILD=1 (currently disabled but that will change) the
kernel will use the existing checkout as the source tree rather than
cloning another tree. If someone built anything in that tree and .config
exists the build will fail complaining that the source isn't clean.
Instead of failing just disable OUTOFTREE and emit a warning.

OUTOFTREE combined with INCREMENTAL makes successive kernel builds
pretty much no-ops (just re-linking modules and bzImage).
2013-11-17 22:45:34 -08:00
Michael Marineau
c83821a102 fix(cros-kernel2.eclass): Explicitly build bzImage in second pass
Build only bzImage instead of the default 'all' which also will re-link
all of the modules which is pointless and just causes the initramfs and
rootfs to become out of sync.
2013-11-17 20:25:45 -08:00
Michael Marineau
45f5b2b976 fix(cros-kernel2.eclass): Install vmlinux into same path as modules
This matches the behavior of Debian/Fedora closer so might as well
change it while I'm mucking around in this eclass.
2013-11-17 20:12:52 -08:00
Michael Marineau
012a13bc28 fix(cros-kernel2.eclass): Add kernel modules to initramfs.
Since we need to both bundle modules into the initramfs as well as
bundle the initramfs into the kernel image we need to update a pre-built
image with the user space tools as part of the kernel build process.

This seemed the best scheme, the alternatives were:
 - Unpack bootengine.cpio to a temporary directory, build and install
   kernel modules into that temporary directory, pass that directory
   plus a config file listing what device nodes to the kernel build.
 - Build kernel modules and generate a fresh bootengine.cpio using the
   update-bootengine tool. This would require calling sudo (and breaking
   out of the sandbox in the process) in the middle of the ebuild.
2013-11-17 20:01:24 -08:00
Brandon Philips
34f3f6a167 Merge pull request #254 from philips/gmerge-amd64
feat(gmerge): accept amd64 stuff
2013-11-15 15:12:29 -08:00
Brandon Philips
3f653524e7 feat(gmerge): ACCEPT_KEYWORDS **
see
47a360f8cd
2013-11-15 15:11:58 -08:00
Michael Marineau
a38632b0ea fix(cros-kernel2.eclass): Don't install invalid source/build symlinks.
If the kernel sources aren't installed there is no point to installing
these symlinks.
2013-11-14 18:23:16 -08:00
Michael Marineau
13fa480c49 fix(cros-kernel2.eclass): Drop the kernel_, just source. It's cleaner.
The use flag kernel_sources conflicts with the special meaning of the
use flag prefix kernel_ which is reserved for defining the host kernel,
for example kernel_linux. Also a couple other ebuilds in Gentoo have a
source use flag so let's just follow that pattern instead.
2013-11-14 18:14:51 -08:00
Michael Marineau
c1039fbcfa fix(cros-kernel2.eclass): Remove a massive amount of dead code.
We do not currently support or care about things like arm, device trees,
smatch, and other things that massively complicate this eclass. Remove
them so making further changes is simple. Features can always be added
back later.
2013-11-14 18:08:39 -08:00
Michael Marineau
76e8f257ab fix(sys-kernel/coreos-kernel): Disable example modules and kgdb.
Just a little cleanup, no need for either of these.
2013-11-14 15:48:51 -08:00
Michael Marineau
c1f8dcbdf7 fix(cros-kernel2.eclass): Move kernel defconfig along side ebuilds
This makes it possible to have multiple kernel ebuilds in the tree at
once since the defconfig can be versioned along side the ebuilds instead
of being global.
2013-11-14 15:39:20 -08:00
Michael Marineau
060794d2ec Merge pull request #252 from marineam/toolchain-pkgs
fix(make.conf): Fetch packages built by build_toolchains
2013-11-13 17:20:17 -08:00
Brandon Philips
94010aec18 chore(eclass/cros-kernel): bump with oldconfig 2013-11-08 15:15:56 -08:00
Brandon Philips
3e5677ccf9 feat(sys-kernel/coreos-kernel): bump to 3.11.7 2013-11-08 13:59:01 -08:00
Michael Marineau
2be7a667fc fix(make.conf): Fetch packages built by build_toolchains 2013-11-07 16:43:08 -08:00
Michael Marineau
2eeb79506f fix(cros-workon.eclass): Do not add -clang to CFLAGS
Not sure how this managed to work in the past, perhaps the test for
using Google's common.mk used to always fail but now works properly?
In any case, we don't use clang any more.
2013-11-07 15:36:45 -08:00