30859 Commits

Author SHA1 Message Date
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
dcd7b8e990 fix(gen_tmpfiles): Add trailing newline 2013-06-06 14:22:40 -04:00
Michael Marineau
31dbe34f10 feat(build_image): Record directories installed in stateful_partition
During builds var_overlay is always mounted over /var. We want to do the
same at run time but we also want to ensure everything expected to be
there always does. After emerge completes gen_tmpfiles.py will scan /var
for any .keep files that were installed and records their parent
directories' permissions and ownership to /usr/lib/tmpfiles.d. On each
boot systemd will automatically recreate anything that goes missing.

This also means that going forward any ebuild that needs a directory in
/var (or anywhere else the stateful partition is bound) can simply rely
on the 'keepdir' ebuild function instead of adding things to
coreos_startup.
2013-06-06 14:18:52 -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
Brandon Philips
29f43a872f Merge pull request #2 from marineam/upgrade-systemd
Upgrade systemd
2013-06-05 16:19:17 -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
03e1186a60 bump(sys-fs/udev): Sync up with latest udev packages in portage.
Although we aren't using these newer versions other things in the tree
refer to them so this avoids confusing but otherwise harmless warnings
about udev-9999.
2013-06-05 16:56:38 -04:00
Michael Marineau
713bd17b2a bump(sys-devel/make): New make version required by systemd
Recent versions of udev include an explicit dependency on
>=sys-devel/make-3.82-r4 to fix a parallel compile error. The fix never
made it into the systemd ebuilds but is also required there.
2013-06-05 16:33:12 -04:00
Michael Marineau
af005fdec9 hack(sys-apps/systemd): Restore python2_6 compat flag
The ebuild previously had a local change to allow it to be built with
python 2.6 that I missed. Restore for now but we should consider
upgrading since gentoo has moved to 2.7.
2013-06-05 16:03:28 -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
Michael Marineau
35236acb15 bump(sys-apps/systemd): Upgrade to systemd v204
This version requires some dependency updates as well:
    dev-util/intltool-0.50.2
    sys-apps/baselayout-2.2
    sys-apps/hwids-20130329
    virtual/udev-197-r3

BIG FAT WARNING: v204 provides udev itself. Packages depending directly
on sys-apps/udev instead of virtual/udev are going have a bad time.
2013-06-05 14:47:58 -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
8517990660 Merge pull request #1 from marineam/resize-state
add(sys-apps/gptfdisk): sgdisk is easier to script than parted
2013-05-31 08:33:47 -07: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
0094cf524b add(sys-apps/gptfdisk): sgdisk is easier to script than parted 2013-05-30 23:30:02 -04:00
Michael Marineau
f7c3c0cdc7 bump(coreos-base/coreos-init): new auto-grow version 2013-05-30 23:27:40 -04:00
Brandon Philips
2378e0294f fix(core_update_dev_track): make the transaction the right way
the transaction was backwards meaning the update hit the db before the
upload was complete. Just swap it around.
2013-05-30 04:22:04 -07: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
Brandon Philips
86c2980c00 bump: base layout packages 2013-05-30 01:16:32 -07:00
Brandon Philips
189e211cfe fix(cros-devutils): use github.com and coreos 2013-05-29 22:33:37 -07:00
Brandon Philips
37953e039b fix(core_update_developer_track): fix docs and a bug
The UUID changed for CoreOS. Make sure we use our own shiny UUID.

Add a doc note that the update should be generated from the "template
image" not from one of the vm images.
2013-05-29 21:59:03 -07:00
Brandon Philips
3844002346 bump(coreos-base/cros-devutils): fixes to the image dev server 2013-05-29 21:35:06 -07:00
Brandon Philips
ba7ccb8cf6 fix(app-admin/etcd*): change version to force rebuild
without this everyone who got -9999 will never upgrade to the actual
build.
2013-05-29 15:23:00 -07:00
Brandon Philips
306f88f4a3 fix(app-admin/etcd*): Use correct version layout
etcd client and etcd were not rebuilding because 9999 was not masked.
Fix this.
2013-05-29 15:12:16 -07:00
Brandon Philips
81db9a59bf bump(app-admin/systemd-rest): bump to latest version 2013-05-28 19:29:52 -07:00
Brandon Philips
b6abd640fa feat(coreos-base/coreos): remove motd-http
motd-http served us well but is no longer needed. Delete it from the
default image.
2013-05-28 19:26:54 -07:00
Brandon Philips
8f0bb39486 add(coreos-base/coreos): add etcd-lib
add etcd-lib to the image build
2013-05-28 17:37:49 -07:00
Brandon Philips
28196a9a3a fix(app-admin/systemd-rest): make version iterable
now that we have a team we need to be able to bump each other to new
versions. Stop accepting the keyword for ~amd64 and move into a version.
2013-05-28 17:06:17 -07:00
Brandon Philips
5e3c938fde fix(coreos-base/etcd-lib): add in symlinks
use symlinks and make the version number bumpable
2013-05-28 17:05:43 -07:00
Brandon Philips
385848d4fa fix(etcd-lib/etcd-lib): ensure it makes it to disk
not all of the /usr/lib files were making it to disk, fix this.
2013-05-28 16:46:05 -07:00
Brandon Philips
d1dd5f9264 fix(coreos-base/coreos-init): versioning was all messed up
the versioning on this package was all messed up. -9999 was a link to
the current version and neither of them were masked so new code never
got built. For now lets make coreos-init-0.0.1-r3 the latest release so
everyone rebuilds.
2013-05-28 16:34:00 -07:00
Brandon Philips
2526ff05e2 bump(coreos-init-9999): refix this symlink 2013-05-28 16:29:08 -07:00
Brandon Philips
a4faf1532c bump(coreos-init): get latest changes 2013-05-28 16:26:11 -07:00
Brandon Philips
37ad8941f4 bump(coreos-base/coreos): bump to get changes 2013-05-28 16:25:02 -07:00
Brandon Philips
83b8a7e7be add(coreos-base/etcd-lib): initial commit
some experiments, lets see how this goes
2013-05-28 16:20:22 -07:00
Brandon Philips
82f41a0f4e fix(app-admin/systemd-rest): add a go get
need to fetch those deps!
2013-05-27 21:02:30 -07:00