Commit Graph

465 Commits

Author SHA1 Message Date
Greg Kroah-Hartman
d3284c9668 feat(cros-kernel/x86_64_defconfig) enable kvm
This lets the guest os host another guest os in a kvm machine.

It's turtles all the way down...
2013-06-13 12:50:28 -07:00
Greg Kroah-Hartman
6ad8262d5b Merge pull request #17 from gregkh/bootkernel
feat(coreos-bootkernel) add coreos-bootkernel ebuild
2013-06-12 18:34:53 -07:00
Greg Kroah-Hartman
798c5718ff fix(coreos-bootkernel) remove commented out line in ebuild
Found during code review, good eye.
2013-06-12 18:34:09 -07:00
Greg Kroah-Hartman
9bd4fb24b0 feat(coreos-bootkernel) add coreos-bootkernel ebuild
This is a separate kernel package, and configuration, for the "boot"
kernel.  It reuses the same eclass for kernel builds, but does two
things differently for boot kernels:
  - no boot/vmlinuz symlink
  - picks the boot version of the kernel configuration.
2013-06-12 17:27:46 -07:00
Brandon Philips
020e18a61a feat(profile): accept all portage-2.1.12*
2.1.12 has the CoreOS bugfix patch accept all of them
2013-06-12 17:10:06 -07:00
Brandon Philips
6c2393fcc5 Merge pull request #16 from gregkh/azure-kernel
fix(eclass/cros-kernel/x86_64_defconfig) add ACPI support
2013-06-12 14:58:13 -07:00
Greg Kroah-Hartman
4091bc7913 fix(eclass/cros-kernel/x86_64_defconfig) add ACPI support
This adds ACPI support to the kernel, which Azure needs in order to
properly boot.  Also added is the needed disk drivers, and other hyper-v
drivers.

Bonus is that the shutdown problem is fixed for kvm images, they no
longer hang forever.
2013-06-12 14:54:01 -07:00
Brandon Philips
ff0d10e07c Merge pull request #14 from gregkh/kernel-cleanup
Kernel versioning fixes
2013-06-12 10:27:47 -07:00
Brandon Philips
649becb58b Merge pull request #15 from gregkh/virtualbox_fix
fix(eclass/cros-kernel/x86_64_defconfig) add pcnet32 support
2013-06-12 10:25:53 -07:00
Greg Kroah-Hartman
ebf6e21b71 fix(eclass/cros-kernel/x86_64_defconfig) add pcnet32 support
This adds the two pcnet drivers to the kernel build, so that the image
will have working networking in a VirtualBox instance.
2013-06-12 10:21:18 -07:00
Greg Kroah-Hartman
0d2159f560 fix(sys-kernel/coreos-kernel) no more firmware files
The kernel package should not be building any firmware files, as they
are not needed in virtual machines, _and_ the firmware file locations
are not versioned, preventing multiple kernels to be installed at the
same time.

This change adds a patch to the kernel to not traverse into the firmware
directory at all, and patches the eclass to not do the firmare_install
build process.
2013-06-12 10:13:47 -07:00
Greg Kroah-Hartman
b4bd3d2e00 fix(eclass/cros-kernel2.eclass) version the debug kernel
The debug kernel image needs to be versioned, like the rest of the
kernel files, so that multiple kernels can be installed at the same
time.  So put it into a unique directory.
2013-06-12 09:45:08 -07:00
Michael Marineau
393d00a697 Merge pull request #12 from philips/add-dracut
feat(dracut): add the packages necessary for dracut
2013-06-11 18:03:05 -07:00
Brandon Philips
16e4a79e2b feat(dracut): add the packages necessary for dracut
We are going to need dracut since our initramfs will need udev, etc for
disk discovery. This pulls in the necessary packages.
2013-06-11 17:21:50 -07:00
Brandon Philips
c59880e1ea Merge pull request #11 from gregkh/master
shrink the kernel configuration a bunch.
2013-06-11 17:05:52 -07:00
Greg Kroah-Hartman
31e9b2c0bc fix(eclass/cros-kernel/x86_64_defconfig) shrink the kernel configuration
This removes a bunch of hardware-specific kernel configuration options
that are not needed in a virtual machine.  It also removes reiserfs
support as well.

Compressed kernel image has shrunk by 290Kb, and we have way fewer
kernel modules being built, and loaded, as well (what in the world was
loading the agp drivers at boot?!)
2013-06-11 16:35:34 -07:00
Greg Kroah-Hartman
14a576b948 Merge pull request #10 from gregkh/master
clean up eclass for the kernel, removing built-in config options.
2013-06-11 12:10:34 -07:00
Greg Kroah-Hartman
b4761cc6b4 fix(eclass/cros-kernel2.eclass) remove fragment logic as we don't need it
We are using a default configuration file, so don't embed configuration
logic into the eclass.
2013-06-11 12:07:16 -07:00
Brandon Philips
e0ed48df81 Merge pull request #9 from gregkh/master
Enable CONFIG_IKCONFIG_PROC in the kernel.
2013-06-09 20:53:26 -07:00
Greg Kroah-Hartman
330b006114 fix(sys-kernel/coreos-kernel): enable CONFIG_IKCONFIG_PROC
CONFIG_IKCONFIG was already being built as a module, might as well
make it easy to get the configuration from the kernel when it is loaded.
The space savings is almost nothing to not enable this.
2013-06-09 20:50:13 -07:00
Brandon Philips
9eec050a4a fix(sys-kernel/coreos-kernel): enable CHECKPOINT_RESTORE
run the defconfig through oldconfig and enable checkpoint_restore
properly. Also disable kprobes as we don't need these.
2013-06-08 21:19:06 -07:00
Brandon Philips
ac20d6fcf5 Merge pull request #8 from marineam/nspawn
fix(coreos-base/coreos-init): Version bump to fix systemd-nspawn booting
2013-06-08 19:39:27 -07:00
Michael Marineau
4766b3a2df fix(coreos-base/coreos-init): Version bump to fix systemd-nspawn booting 2013-06-08 22:18:40 -04:00
Brandon Philips
1dad3615d5 feat(sys-process/criu): add features for criu
- add the necessary Kernel configurations
- add the sys-process/criu package (removing linux-info eclass to
  workaround not having a /usr/src/linux directory)
- add build dependencies to the hard-host-depends package
- accept the unstable nature of criu in accept_keywords
2013-06-08 19:06:33 -07:00
Brandon Philips
5a84a6a841 Merge pull request #7 from marineam/boot-cleanup
Boot cleanup
2013-06-06 15:31:08 -07:00
Michael Marineau
d628e55c82 bump(coreos-base/coreos-init): config update 2013-06-06 17:56:10 -04:00
Michael Marineau
9a44eef0a7 fix(coreos-base/coreos-base): Remove dummy rootfs entry from fstab.
Remounting / read-write has been moved to the dev_mode helper script in
coreos-init instead of letting systemd do it based on fstab. Now if a
system boots without /root/.dev_mode the filesystem remains read-only.
2013-06-06 17:26:23 -04:00
Michael Marineau
feb372fdb4 bump(coreos-base/coreos-init): New code
Adds tmpfiles config, more units, and top level coreos-startup.target
which eliminates the need for maintaining that list in the ebuild.
2013-06-06 17:26:14 -04:00
Michael Marineau
be4215fec0 fix(systemd-rest+docker): Use keepdir to install empty /var directories.
Not only is this the safer way of installing empty directories but we
can now leverage keepdir to repopulate missing items in var.
2013-06-06 14:52:09 -04:00
Michael Marineau
42f161d1ba bump(coreos-base/coreos-init): Update to latest code version.
This adds the new sshd-keygen unit.
2013-06-05 20:18:34 -04:00
Michael Marineau
504217295c fix(coreos-base/coreos-init): Move daemon setup to init package.
Previously coreos-base handled some sshd and dhcpcd and lacked the
dependencies required to make enabling systemd units work. coreos-init
is a better place for that and has a proper source package so fewer
files are needed in the portage overlay.
2013-06-05 19:35:39 -04:00
Brandon Philips
0148e57e73 Merge pull request #6 from marineam/upgrade-systemd
Upgrade systemd
2013-06-05 16:20:22 -07:00
Michael Marineau
66092129ba bump(sys-apps/systemd): unmask systemd-204
Booted! Ship it!
2013-06-05 19:05:57 -04:00
Michael Marineau
bb918f040f hack(sys-apps/openrc): Mark as provided in the SDK
We don't need openrc in the SDK either so move the package.provided
entry to the default profile instead of just the coreos target.
2013-06-05 15:37:00 -04:00
Michael Marineau
a6bf9c6968 fix(coreos-base/coreos-base): Install systemd in SDK
Adding systemd to base means it will be installed in the SDK in addition
to built images. This should avoid potential confusion that may be
caused by leaving sys-fs/udev in the SDK while it is removed from built
images in favor of systemd 204.
2013-06-05 15:12:21 -04:00
Michael Marineau
8c7d512130 fix(coreos-base/*): Replace sys-fs/udev with virtual/udev
In preparation for systemd 204 which provides udev itself we need to
stop depending directly on the stand-alone udev package.
2013-06-05 14:59:29 -04:00
Brandon Philips
f2f71734c8 bump(etcd-lib): get latest code 2013-06-04 15:25:22 -07:00
Michael Marineau
8fb1baa79b Merge pull request #5 from marineam/resize-state
Resize state updates
2013-06-03 14:26:16 -07:00
Michael Marineau
c30049ef68 fix(coreos-init): code fix for new path to coreos_startup 2013-06-03 16:58:27 -04:00
Michael Marineau
7754ca2131 fix(coreos-base/coreos-base): remove /var/run from fstab
No longer needed as systemd is installed with a unit to bind /var/run to
/run which is always a tmpfs mount. Binding the two seems cleaner.
2013-06-03 16:33:25 -04:00
Michael Marineau
16ce227d79 fix(coreos-init): start splitting startup into multiple units
This is the first round of splitting up the coreos_startup script into
multiple units, starting with using systemd to mount the state and oem
partitions. This lets us use systemd to get device dependencies right.

Also cleanup whitespace, I forgot ebuild style requires tab characters.
Sync up -9999 version which I missed in previous commits.
2013-06-03 15:23:21 -04:00
Brandon Philips
5889dcf1f6 Merge pull request #3 from marineam/resize-state
bump(coreos-base/coreos-init): new auto-grow version
2013-05-31 08:33:35 -07:00
Brandon Philips
44b4156ddb Merge pull request #4 from marineam/util-fixes
Util fixes
2013-05-31 08:28:43 -07:00
Michael Marineau
269b39d4fe fix(coreos-base/coreos): Add gzip and less to base image.
Basic tools others expect! Other tools missed them dearly.
2013-05-31 11:10:14 -04:00
Michael Marineau
f1a91f343e fix(coreos-base/coreos-base): mawk provides awk on target images
Link awk to mawk and block gawk for target builds to avoid conflicts.
2013-05-31 11:08:24 -04:00
Michael Marineau
f7c3c0cdc7 bump(coreos-base/coreos-init): new auto-grow version 2013-05-30 23:27:40 -04:00
Brandon Philips
988458fb3b fix(app-admin/etcd): oops! can't have to execstart's 2013-05-30 03:07:49 -07:00
Brandon Philips
7cf225bd36 hack(app-admin/etcd): run all of the scripts in bootstrap
systemd doesn't let you run a script _before_ the env variables get set.
This makes sense so run the scripts first.
2013-05-30 02:57:27 -07:00
Brandon Philips
c48baae65f fix(app-admin/etcd): figure out bootstraping 2013-05-30 02:27:22 -07:00
Brandon Philips
6db7db01f4 hack(app-admin/etcd): bootstrapping problems
put this hack in place until we figure out how to bootstrap doozer
2013-05-30 01:59:43 -07:00