coreos-init: update for logrotate support

btmp and wtmp will now be properly rotated, yay!

Masking of logrotate configs has moved to just apply to boards, leaving
them in the SDK can be a useful reference.
This commit is contained in:
Michael Marineau 2015-06-29 10:10:05 -07:00
parent 0fdaca48fe
commit 7791f49d87
4 changed files with 7 additions and 3 deletions

View File

@ -10,7 +10,7 @@ CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
else
CROS_WORKON_COMMIT="af207c09eff3b8447d457c5e534a0b7ff3aae514"
CROS_WORKON_COMMIT="d301028d546e4a774345dab69d0429f6bc527ae0"
KEYWORDS="amd64 arm arm64 x86"
fi
@ -36,6 +36,7 @@ DEPEND="
test? ( dev-lang/python:2.7 )
"
RDEPEND="${DEPEND}
app-admin/logrotate
sys-block/parted
sys-apps/gptfdisk
>=sys-apps/systemd-207-r5

View File

@ -18,6 +18,9 @@ ETCD_PROTOCOLS="1 2"
# Extra use flags for CoreOS SDK
USE="${USE} cros_host expat -introspection -cups -tcpd -pcre -berkdb"
# Never install cron or cron jobs
USE="${USE} -cron"
# No need for zeroconf, that's a desktop world thing.
# Namely dhcpcd shoudln't make up random ipv4 addresses using ipv4ll
USE="${USE} -zeroconf"
@ -61,11 +64,9 @@ CONFIG_PROTECT="
# Remove libtool .la files for non-plugin libraries.
# Remove Gentoo init files since we use systemd.
# Remove logrotate.d files since we don't use logrotate.
INSTALL_MASK="
/usr/lib*/*.la
/etc/init.d /etc/conf.d
/etc/logrotate.d
"
# Keep the default languages small.

View File

@ -27,6 +27,8 @@ INSTALL_MASK="${INSTALL_MASK}
/etc/dmtab
/etc/e2fsck.conf
/etc/lvm/*
/etc/logrotate.conf
/etc/logrotate.d
/etc/mdadm.conf
/etc/rsyncd.conf
/etc/sudoers