mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
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:
parent
9af1e79d79
commit
3164ae5fe0
@ -12,7 +12,9 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2
|
|||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
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() {
|
pkg_setup() {
|
||||||
multilib_layout
|
multilib_layout
|
||||||
@ -172,6 +174,11 @@ src_install() {
|
|||||||
|
|
||||||
# rc-scripts version for testing of features that *should* be present
|
# rc-scripts version for testing of features that *should* be present
|
||||||
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release
|
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() {
|
pkg_postinst() {
|
Loading…
Reference in New Issue
Block a user