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>
19 lines
405 B
Bash
Executable file
19 lines
405 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
|
|
|
|
# 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
|