create-vmachine: Initial Portage configuration

master
Dustin C. Hatch 2013-09-22 15:25:57 -05:00
parent e94388654c
commit c8a26f5004
1 changed files with 27 additions and 0 deletions

View File

@ -106,6 +106,33 @@ LABEL=root / xfs noatime 0 1
LABEL=var /var xfs noatime 0 2 LABEL=var /var xfs noatime 0 2
LABEL=home /home xfs noatime 0 2 LABEL=home /home xfs noatime 0 2
tmpfs /tmp tmpfs defaults 0 0 tmpfs /tmp tmpfs defaults 0 0
atria:/portage/tree /var/cache/portage/tree nfs4 soft,bg,intr,ro 0 0
atria:/portage/distfiles /var/cache/portage/distfiles nfs4 soft,bg,intr 0 0
atria:/portage/binpkgs /var/cache/portage/binpkgs nfs4 soft,bg,intr 0 0
EOF
echo "Configuring Portage..."
mkdir -p "${MOUNTPOINT}"/var/cache/portage/{tree,distfiles,binpkgs}
ln -snf ../../var/cache/portage/tree/profiles/"${PORTAGE_PROFILE}" \
"${MOUNTPOINT}"/etc/portage/make.profile
cat <<"EOF" > "${MOUNTPOINT}"/etc/portage/make.conf
CFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10 -mcx16 -msahf -mpopcnt -mabm
--param l1-cache-size=64 --param l1-cache-line-size=64
--param l2-cache-size=512"
CXXFLAGS="${CFLAGS}"
PORTDIR="/var/cache/portage/tree"
DISTDIR="/var/cache/portage/distfiles"
PKGDIR="/var/cache/portage/binpkgs/default-linux/amd64/amdfam10"
EMERGE_DEFAULT_OPTS="--usepkg --jobs --load-average=3"
FEATURES="distcc-pump distcc buildpkg"
MAKEOPTS="-j9"
USE="3dnow 3dnowext -X -berkdb -gdbm kerberos mmx mmxext sse sse2"
EOF
cat <<EOF > "${MOUNTPOINT}"/etc/distcc/hosts
atria,cpp,lzo
seginus-x1,cpp,lzo
betaindi,cpp,lzo
EOF EOF
echo "Creating read-only root filesystem compatibility symlinks..." echo "Creating read-only root filesystem compatibility symlinks..."