64787d8ec2
Change-Id: Id954ffe4d9b019c7e7bb648725ff7f976c929b4d
21 lines
475 B
Bash
Executable file
21 lines
475 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
# set profile symlink to the hardcoded PORDIR
|
|
ln -sf ../.."${PORTDIR}/profiles/${GENTOO_PROFILE}" /etc/portage/make.profile
|
|
|
|
# Set timezone
|
|
echo 'UTC' > /etc/timezone
|
|
|
|
if [[ "${GENTOO_PROFILE}" != *"musl"* ]]; then
|
|
# Set locale
|
|
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
|
|
echo 'en_US ISO-8859-1' >> /etc/locale.gen
|
|
locale-gen -q
|
|
eselect locale set en_US.utf8
|
|
fi
|