fix(sys-apps/baselayout): Don't install /etc/issue on target systems.

This is handled in /run by coreos-init scripts.
This commit is contained in:
Michael Marineau 2013-08-27 20:33:03 -07:00
parent 9af1e79d79
commit 3164ae5fe0

View File

@ -12,7 +12,9 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="build kernel_linux"
IUSE="build cros_host kernel_linux"
RDEPEND="cros_host? ( !coreos-base/coreos-init )"
pkg_setup() {
multilib_layout
@ -172,6 +174,11 @@ src_install() {
# rc-scripts version for testing of features that *should* be present
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release
if use !cros_host; then
# Don't install /etc/issue since it is handled by coreos-init
rm "${D}"/etc/issue
fi
}
pkg_postinst() {