templates/gentoo-latest/settings_x86.sh
# settings that will be shared between all scripts

cat <<DATAEOF > "/etc/profile.d/veewee.sh"
# stage 3 filename and full url
# retrieve from Gentoo current autobuild txt - these change regularly

# distfiles source
distfiles_url=http://distfiles.gentoo.org

build_arch="x86"
build_proc="i686"
stage3current=\`curl -s \${distfiles_url}/releases/\${build_arch}/autobuilds/latest-stage3-\${build_proc}.txt|grep -v "^#"|grep -o "^\\S*"\`
export stage3url="\${distfiles_url}/releases/\${build_arch}/autobuilds/\${stage3current}"
export stage3file=\${stage3current##*/}
export portageurl="\${distfiles_url}/snapshots/portage-latest.tar.bz2"

# these two (configuring the compiler) and the stage3 url can be changed to build a 32 bit system
export accept_keywords="x86"
export chost="i686-pc-linux-gnu"

# kernel version to use
export kernel_version="4.9.16"
export kernel_image_version="4.9.16-gentoo"

# timezone (as a subdirectory of /usr/share/zoneinfo)
export timezone="UTC"

# locale
export locale="en_US.utf8"

# chroot directory for the installation
export chroot=/mnt/gentoo

# number of cpus in the host system (to speed up make and for kernel config)
export nr_cpus=$(</proc/cpuinfo grep processor|wc -l)

# user passwords for password based ssh logins
export password_root=vagrant
export password_vagrant=vagrant

# the public key for vagrants ssh
export vagrant_ssh_key_url="https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub"
DATAEOF
