mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
commit
65b0ce370c
@ -4,9 +4,6 @@
|
||||
source "/mnt/host/source/.repo/manifests/version.txt"
|
||||
COREOS_VERSION_STRING="${COREOS_BUILD}.${COREOS_BRANCH}.${COREOS_PATCH}"
|
||||
|
||||
# Tolerate collisions (for now), disable extra locking, ignore missing digests.
|
||||
FEATURES="-collision-protect -ebuild-locks -strict"
|
||||
|
||||
# Since our portage comes from version control, we redirect distfiles
|
||||
DISTDIR="/var/lib/portage/distfiles"
|
||||
|
||||
|
||||
@ -16,9 +16,6 @@ PORTAGE_TMPDIR=${ROOT}tmp/
|
||||
|
||||
PORT_LOGDIR=${ROOT}tmp/portage/logs/
|
||||
|
||||
# Tolerate collisions (for now), disable extra locking, ignore missing digests.
|
||||
FEATURES="-collision-protect -ebuild-locks -strict"
|
||||
|
||||
PORTAGE_WORKDIR_MODE="0755"
|
||||
PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/:${ROOT}usr/share/pkgconfig/"
|
||||
|
||||
|
||||
@ -209,23 +209,7 @@ eblit-pkg_preinst-post() {
|
||||
|
||||
# CoreOS tweaks:
|
||||
# - drop host.conf and gai.conf
|
||||
# - move/symlink nsswitch.conf and rpc.
|
||||
# These are moving to baselayout+usrfiles and glibc shouldn't conflict
|
||||
# - nsswitch.conf and rpc are provided by baselayout
|
||||
eblit-src_install-post() {
|
||||
dodir /usr/share/glibc
|
||||
local move
|
||||
for move in nsswitch.conf rpc ; do
|
||||
[ -f "${D}/etc/${move}" ] || continue
|
||||
mv "${D}/etc/${move}" "${D}"/usr/share/glibc || die
|
||||
done
|
||||
rm -f "${D}"/etc/{gai.conf,host.conf} || die
|
||||
}
|
||||
|
||||
eblit-pkg_postinst-post() {
|
||||
local sym
|
||||
for sym in nsswitch.conf rpc ; do
|
||||
[ ! -f "${ROOT}/etc/${sym}" ] || continue
|
||||
[ -f "${ROOT}/usr/share/glibc/${sym}" ] || continue
|
||||
ln -sf "../usr/share/glibc/${sym}" "${ROOT}/etc/${sym}" || die
|
||||
done
|
||||
rm -f "${D}"/etc/{gai.conf,host.conf,nsswitch.conf,rpc} || die
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user