create-vmachine: Less specific configuration (use Ansible)

master
Dustin C. Hatch 2013-10-10 22:09:04 -05:00
parent 90b9f06ad8
commit 1cc87ab55d
1 changed files with 0 additions and 28 deletions

View File

@ -96,7 +96,6 @@ sed -i "s/localhost/${VMNAME}/" "${MOUNTPOINT}"/etc/conf.d/hostname
echo "Configuring network..."
echo 'config_eth0="dhcp"' > "${MOUNTPOINT}"/etc/conf.d/net
echo 'dhcpcd_eth0="-q"' >> "${MOUNTPOINT}"/etc/conf.d/net
ln -s net.lo "${MOUNTPOINT}"/etc/init.d/net.eth0
ln -s /etc/init.d/net.eth0 "${MOUNTPOINT}"/etc/runlevels/default/
ln -s /etc/init.d/sshd "${MOUNTPOINT}"/etc/runlevels/default/
@ -108,33 +107,6 @@ LABEL=usr /usr xfs noatime 0 2
LABEL=var /var xfs noatime 0 2
LABEL=home /home xfs noatime 0 2
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
echo "Creating read-only root filesystem compatibility symlinks..."