Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make cd install stuff optional

Signed-off-by: Dave Simons <dave@inuits.be>
  • Loading branch information...
commit d02b430fd2d22997c4b156f0336c5aef39a37578 1 parent e737952
Dave Simons authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 templates/archlinux-x86_64-netboot/postinstall.sh
9 templates/archlinux-x86_64-netboot/postinstall.sh
View
@@ -1,5 +1,8 @@
#!/bin/bash
+# var to determine package source
+PKGSRC=net
+
date > /etc/vagrant_box_build_time
# launch automated install
@@ -59,8 +62,8 @@ chown -R vagrant /home/vagrant/.ssh
sed -i 's/^#\(.*leaseweb.*\)/\1/' /etc/pacman.d/mirrorlist
# update pacman
-pacman -Syy
-pacman -S --noconfirm pacman
+[[ $PKGSRC == 'cd' ]] && pacman -Syy
+[[ $PKGSRC == 'cd' ]] && pacman -S --noconfirm pacman
# upgrade pacman db
pacman-db-upgrade
@@ -75,7 +78,7 @@ cd puppet
ruby install.rb --bindir=/usr/bin --sbindir=/sbin
# set up networking
-sed -i 's/^\(interface=*\)/\1eth0/' /etc/rc.conf
+[[ $PKGSRC == 'net' ]] && sed -i 's/^\(interface=*\)/\1eth0/' /etc/rc.conf
# leave the chroot
ENDCHROOT
Please sign in to comment.
Something went wrong with that request. Please try again.