041bdd331a
The main reason for using the stage4 is now gone (kernel compile). Install and use the distro provided binary kernel package. In addition to this, set the locale and timezone, beyond that very little was done in the gentoo stage4. Change-Id: I541b7d9b807e2357398ae1c249b1978958dd1137 Signed-off-by: Matthew Thode <mthode@mthode.org>
39 lines
1 KiB
Bash
Executable file
39 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [[ ${GENTOO_OVERLAYS} != '' ]]; then
|
|
if mountpoint -q /dev/shm; then
|
|
echo "/dev/shm found in /proc/self/mountinfo"
|
|
elif [[ -k /dev/shm ]]; then
|
|
echo "/dev/shm exists and is stickied"
|
|
else
|
|
fix_shm
|
|
fi
|
|
|
|
if [[ ! -f ${PORTDIR}/profiles ]]; then
|
|
emerge-webrsync -q
|
|
fi
|
|
|
|
# upstream has problems with supporting other libcs still
|
|
if [[ "${GENTOO_PROFILE}" == *"musl"* ]]; then
|
|
echo '=sys-block/open-iscsi-2.0.877' >> /etc/portage/package.accept_keywords/open-iscsi
|
|
fi
|
|
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --oneshot openssl openssh
|
|
# install layman
|
|
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --oneshot --deep --ignore-built-slot-operator-deps=y layman
|
|
# sync the initial overlay list
|
|
layman -S
|
|
# enable the various overlays, ignore failures (overlay my already be enabled)
|
|
set +e
|
|
for OVERLAY in ${GENTOO_OVERLAYS}; do
|
|
layman -a "${OVERLAY}"
|
|
done
|
|
set -e
|
|
|
|
unfix_shm
|
|
fi
|