Merge pull request #1269 from crawford/rkt

app-emulation/rkt: bump to v0.5.5 and add gc timer
This commit is contained in:
Alex Crawford 2015-05-28 13:45:12 -07:00
commit 13d4294c79
4 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,7 @@
[Unit]
Description=Garbage Collection for rkt
[Service]
Environment=GRACE_PERIOD=1d
Type=oneshot
ExecStart=/usr/bin/rkt gc --grace-period=$GRACE_PERIOD

View File

@ -0,0 +1,9 @@
[Unit]
Description=Periodic Garbage Collection for rkt
[Timer]
OnActiveSec=0s
OnUnitActiveSec=12h
[Install]
WantedBy=multi-user.target

View File

@ -5,12 +5,12 @@ EAPI=5
CROS_WORKON_PROJECT="coreos/rkt"
CROS_WORKON_LOCALNAME="rkt"
CROS_WORKON_REPO="git://github.com"
inherit cros-workon
inherit cros-workon systemd
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64"
else
CROS_WORKON_COMMIT="c8a7050a883653266137ae05f6e8f166db52eb67" # v0.5.4
CROS_WORKON_COMMIT="40ced98c320c056e343fe9c3eaeb90a4ff248936" # v0.5.5
KEYWORDS="amd64"
fi
@ -51,4 +51,7 @@ src_install() {
insinto /usr/share/rkt
doins "${S}/bin/stage1.aci"
systemd_dounit "${FILESDIR}"/${PN}-gc.service
systemd_dounit "${FILESDIR}"/${PN}-gc.timer
}