bea81bd234
Adds: 1. grub-efi package mappings 2. efi-64 support 3. default (openrc) arm64 profile 4. systemd arm64 profile Cleans up the keywords and use flags in 02-gentoo-02-flags. Most stuff was stablized. Also cleaned up some formatting for the if statements. Enables less trusted overlays (up to the end user to verify). in 10-gentoo-image I cleaned up some bash lint things as well. using && instead of -a and avoiding $? Change-Id: I3dffe1aab4bbdc4946a9bf2269bf0cde49529a4e
38 lines
979 B
Bash
Executable File
38 lines
979 B
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
|
|
|
|
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --oneshot openssl openssh
|
|
# install layman
|
|
emerge ${GENTOO_EMERGE_DEFAULT_OPTS} --deep --ignore-built-slot-operator-deps=y layman
|
|
# set layman config options
|
|
sed -i 's/^check_official.*/check_official : No/g' /etc/layman/layman.cfg # allow unoffical repos
|
|
# 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
|