From 1cc87ab55dcf182f3452d460f4b455794bb80817 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 10 Oct 2013 22:09:04 -0500 Subject: [PATCH] create-vmachine: Less specific configuration (use Ansible) --- create-vmachine.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/create-vmachine.sh b/create-vmachine.sh index d994b2b..844f4d4 100755 --- a/create-vmachine.sh +++ b/create-vmachine.sh @@ -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 < "${MOUNTPOINT}"/etc/distcc/hosts -atria,cpp,lzo -seginus-x1,cpp,lzo -betaindi,cpp,lzo EOF echo "Creating read-only root filesystem compatibility symlinks..."