2633 Commits

Author SHA1 Message Date
Michael Marineau
ae96378bfa Merge pull request #150 from marineam/systemd
Systemd/init/profile updates
2013-08-04 14:15:18 -07:00
Michael Marineau
bcd2cea31b fix(profiles): Disable systemd use flag for dbus on targets.
This flag enables 'at_console' policy support using logind. I don't
think we actually have a use for that and having it disabled hasn't
caused anything weird that I know of so far so leave it disabled.

Enabling this flag causes a circular dependency between systemd and dbus
which is resolved in catalyst bootstrapped builds like the SDK but for
target builds this is a problem.
2013-08-04 14:46:14 -04:00
Michael Marineau
7878926463 drop(sys-apps/dbus): Moved to portage-stable 2013-08-03 20:25:54 -04:00
Michael Marineau
07632fc185 drop(sys-apps/sysvinit-tools): was only required by dracut < 031
031 includes a shell reimplementation of pidof which is the only tool I
could find that it used from sysvinit.
2013-08-03 20:21:14 -04:00
Michael Marineau
806979675e bump(sys-kernel/dracut): bump to 031 from gentoo
Only local modification is to remove the sysvinit dependency
2013-08-03 20:19:26 -04:00
Michael Marineau
bb47bc354a fix(profiles): Use systemd profile, clean init stuff from other places.
Now the default/linux profile pulls in the systemd-only profile, all
other things systemd/openrc/init references can go away now.
2013-08-03 19:03:31 -04:00
Michael Marineau
a6e4651e25 feat(profiles): Add systemd profile from my Gentoo systemd-only overlay.
No need for me to maintain a similar profile in two entirely different
ways. This is also one tiny step towards cleaning up our profiles in
general. Original here: https://github.com/marineam/systemd-only-overlay

As part of this change the baselayout dependency on openrc is now
handled via a use flag instead of package.provided. We didn't previously
include a virtual/init package but Gentoo has one and I needed it for my
generic systemd-only overlay so might as well include it here if it is
needed in the future.
2013-08-03 18:59:28 -04:00
polvi
8aac92d989 Merge pull request #149 from polvi/etcd-bootstrap
feat(oem-service): make etcd bootstrapping optional, and only supported ...
2013-08-01 19:29:28 -07:00
Alex Polvi
76d81a0f19 feat(oem-service): make etcd bootstrapping optional, and only supported on ec2 for now. This will continue to be refactored. 2013-08-01 19:15:21 -07:00
Brandon Philips
cba48d9b3b Merge pull request #141 from philips/etcd-restrictions
feat(dev-db/etcd): run as etcd user
2013-08-01 13:38:00 -07:00
Michael Marineau
867e664a94 Merge pull request #146 from marineam/vlite
vagrant oem, misc cleanups
2013-08-01 13:34:44 -07:00
Brandon Philips
b9739b6108 Merge pull request #148 from philips/add-netfilter-redirect
feat(sys-kernel/coreos-kernel): add netfilter redirect
2013-08-01 13:16:30 -07:00
Michael Marineau
52dab6e268 fix(coreos-base/oem-ami): Cleanup ebuild, bump to EAPI=5
Generally a good idea to use newer EAPIs that default to failing on
errors. Uses the same S fix as oem-vagrant does.
2013-08-01 16:12:49 -04:00
Brandon Philips
eac9de51bf feat(sys-kernel/coreos-kernel): add netfilter redirect
add this so we can do some 169. magic with etcd
2013-08-01 13:03:55 -07:00
Greg Kroah-Hartman
6ed2da047d Merge pull request #147 from philips/bump-to-3.10.4
bump(sys-kernel/coreos-kernel): to 3.10.4
2013-08-01 12:42:43 -07:00
Brandon Philips
0fbecd3a4e bump(sys-kernel/coreos-kernel): to 3.10.4
- bump to the latest stable - 3.10.4
- add some minimal real hardware support
- modify cros-workon to allow EGIT_BRANCH to be set
2013-08-01 11:49:18 -07:00
Michael Marineau
dec3691adc fix(coreos-base/oem-vagrant): Fix compatibility with newer EAPIs
No source directory exists so change the value of S, otherwise the
implied cd $S prior to src_install fails. This isn't an issue in oem-ami
which I was using as reference because it declares EAPI=2 which doesn't
make errors fatal by default.
2013-08-01 11:36:28 -04:00
Michael Marineau
e5f16ba427 add(coreos-base/oem-vagrant): Add OEM package for the vagrant ssh key 2013-07-31 23:53:03 -04:00
Michael Marineau
7cdb04ef14 fix(make.conf): Use absolute path to make.conf.host_setup
The relative path wasn't working with euse correctly. Gotta love
re-implementations of portage config parsing, in perl, with weird bugs.
2013-07-31 15:59:18 -04:00
Michael Marineau
95b3dedcf1 remove(app-emulation/qemu-kvm): Remove ancient qemu version. 2013-07-31 15:23:07 -04:00
Michael Marineau
18e28643ac Merge pull request #143 from marineam/buildbot
Buildhost ebuilds
2013-07-31 09:36:08 -07:00
Greg Kroah-Hartman
af7f241310 Merge pull request #144 from marineam/evdev
fix(sys-kernel/coreos-kernel): Add evdev module.
2013-07-30 18:59:51 -07:00
Michael Marineau
2e37393af5 fix(sys-kernel/coreos-kernel): Add evdev module.
ACPI power buttons are input devices! Without this it isn't possible to
trigger a graceful shutdown via qemu's command 'system_powerdown' or
whatever libvirt and similar APIs that are layered on top of it.

Probably applicable to other things too that we just don't know about.
2013-07-30 21:10:41 -04:00
Michael Marineau
9d975a3dd7 fix(coreos-devel/coreos-buildbot): Update git commit hash
Merged, use fresh new merge hash.
2013-07-30 16:52:26 -04:00
Michael Marineau
5f2f390b9a fix(profiles): Set use flags required by buildhost-depends 2013-07-30 13:41:23 -04:00
Michael Marineau
0c564ebf78 add(coreos-devel/*-depends): Meta ebuilds for buildhost and SDK.
Create a meta-ebuild for the SDK based on the packages currently listed
explicitly in bootstrap_sdk.sh and a buildhost ebuild that expands on
that, adding packages that are required in containers used by build
slave instances.
2013-07-30 13:19:15 -04:00
Michael Marineau
ae43aaf5df add(coreos-devel/coreos-buildbot): Add ebuild for our buildbot tools.
Creating a new category for this, coreos-base is overused and dev-python
didn't seem right for custom infrastructure tools. Going forward I'd
like to put SDK and build host specific stuff in this category when
previously coreos-base would be used. Things that actually land in
images would stick with coreos-base.
2013-07-30 13:02:17 -04:00
Brandon Philips
64350b1aed Merge pull request #140 from philips/drop-unused-package
chore(coreos): remove app-crypt/trousers
2013-07-30 09:24:57 -07:00
Michael Marineau
4e88f96fa1 Merge pull request #142 from marineam/notice-404
fix(dev-db/etcd): Handle missing ec2 user-data correctly.
2013-07-30 09:21:44 -07:00
Brandon Philips
bf35170ead fix(dev-db/etcd): use mkdir -p in pre-exec
Ensure that we don't fail on the /var/run/etcd directory creation.
2013-07-30 09:04:47 -07:00
Brandon Philips
db2708f2e8 fix(dev-db/etcd): use new state location
have etcd use /var/lib like other daemons do.
2013-07-30 09:03:45 -07:00
Michael Marineau
9d25f8c06c fix(dev-db/etcd): Handle missing ec2 user-data correctly.
Important notice to all using curl: by default a 404 is not an error!

I noticed that instances created without any user data were attempting
to connect to a *lot* of random IP addresses and failing. After
attempting the curl command c10n uses to fetch user data it would seem
we have lots of virtual machines using the following as a secret key:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     <head>
      <title>404 - Not Found</title>
     </head>
     <body>
      <h1>404 - Not Found</h1>
     </body>
    </html>

ᕙ(⇀‸↼‶)ᕗ

The --fail option is required for curl to behave responsibly.
2013-07-30 11:44:46 -04:00
Brandon Philips
5bd666247c feat(dev-db/etcd): run as etcd user
thie patch does a few things

1) Add the etcd user and run etcd as that user

2) Add the /var/lib/etcd directory and have it owned by the etcd user

3) Move /media/state/etcd/* files into /var/lib/etcd/ and chown them to
   etcd

Test-plan: Build an AMI and ensure this all works with the
bootstrapping.
2013-07-29 23:09:14 -07:00
Brandon Philips
ea25c209af chore(coreos): remove app-crypt/trousers
It will be awhile before CoreOS runs on something with a working TPM.
Remove this.
2013-07-29 21:39:53 -07:00
Brandon Philips
62db854432 Merge pull request #139 from philips/cleanup-unix-users
chore(coreos-base/coreos-base): remove unused groups/users
2013-07-29 21:36:58 -07:00
Brandon Philips
033a385685 chore(coreos-base/coreos-base): remove unused groups/users
we have a few unused groups and users. Reserve the UIDs but just don't
have them in the DB until we need them.
2013-07-29 21:33:04 -07:00
Brandon Philips
c3444a8ad5 Merge pull request #138 from doodles526/certs
added commit for our certs
2013-07-29 14:05:46 -07:00
Brandon Philips
2c1b5517b2 Merge pull request #137 from marineam/fix-hash
fix(coreos-base/coreos-init): Fix invalid git hash.
2013-07-29 13:43:03 -07:00
Josh Deare
9df7791b42 added commit for our certs 2013-07-29 11:47:18 -07:00
Michael Marineau
3d7b6336fb fix(coreos-base/coreos-init): Fix invalid git hash.
Merge gone wrong with a rebase maybe? Dunno but should build now. :)
2013-07-29 14:36:26 -04:00
Brandon Philips
b48f95c3db Merge pull request #135 from philips/add-local.target
fix(init): move a few things around
2013-07-29 10:15:36 -07:00
Brandon Philips
da254bcd45 fix(init): move a few things around
1) Make default.target be multi-user.target instead of the default,
   graphical.target

2) Move daemons out of coreos-startup and just have them wantedby
   default.target

3) Have update-engine not rely on coreos-startup and add itself to
   default.target.wants

4) Grab the new init code that does the above

5) Add the local-enable.service which will add /media/state/units to
   /run/systemd/system and start local.target
2013-07-28 22:59:08 -07:00
polvi
fd4502226f Merge pull request #133 from marineam/rebump
bump(dev-db/etcd): Fix revision number, we wend backwards by mistake.
2013-07-28 14:44:40 -07:00
Michael Marineau
c8b83b06c8 bump(dev-db/etcd): Fix revision number, we wend backwards by mistake. 2013-07-28 17:41:29 -04:00
polvi
113b6e6282 Merge pull request #132 from marineam/nsswitch
fix(coreos-base/coreos-base): Include default nsswitch.conf
2013-07-27 10:42:32 -07:00
Michael Marineau
6f7ec78b85 fix(coreos-base/coreos-base): Include default nsswitch.conf
Until we start installing glibc like sane people we need to include this
via other means. Without it name resolution behavior is somewhat surprising.
2013-07-27 13:20:13 -04:00
Michael Marineau
ec9ee86139 Merge pull request #131 from marineam/dev
bump(coreos-base/cros-devutils+gmerge): Update to latest code
2013-07-27 07:15:55 -07:00
Michael Marineau
9effa608cd bump(coreos-base/cros-devutils+gmerge): Update to latest code 2013-07-26 22:49:05 -04:00
Michael Marineau
6544b67b89 Merge pull request #130 from marineam/etcd
bump(dev-db/etcd): Grab latest build fixes
2013-07-26 18:27:19 -07:00
Michael Marineau
7ed8357499 bump(dev-db/etcd): Grab latest build fixes 2013-07-26 21:14:55 -04:00