Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bash from the FreeBSD image. #88

Merged
merged 1 commit into from
Oct 1, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions packer/scripts/freebsd/postinstall.csh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ EOT
# get new ports
/tmp/portsnap fetch extract

# build packages for sudo and bash
# build package for sudo
pkg_delete -af
cd /usr/ports/security/sudo
make -DBATCH package-recursive clean
cd /usr/ports/shells/bash-static
make -DBATCH package clean

#Installing vagrant keys
mkdir /home/vagrant/.ssh
Expand Down Expand Up @@ -68,10 +66,6 @@ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
# Restore correct su permissions
# I'll leave that up to the reader :)

cd /usr/ports/devel/libtool
make clean
make install -DBATCH

# disable X11 because vagrants are (usually) headless
cat >> /etc/make.conf << EOT
WITHOUT_X11="YES"
Expand All @@ -85,7 +79,6 @@ make -DBATCH install

# undo our customizations
sed -i '' -e '/^REFUSE /d' /etc/portsnap.conf
# sed -i '' -e '/^WITHOUT_X11/d' /etc/make.conf

echo 'vboxdrv_load="YES"' >> /boot/loader.conf
echo 'vboxnet_enable="YES"' >> /etc/rc.conf
Expand All @@ -109,9 +102,6 @@ echo 'ifconfig_vtnet3_name="em3"' >> /etc/rc.conf
pw groupadd vboxusers
pw groupmod vboxusers -m vagrant

#Bash needs to be the shell for tests to validate
pw usermod vagrant -s /usr/local/bin/bash

echo "=============================================================================="
echo "NOTE: FreeBSD - Vagrant"
echo "When using this basebox you need to do some special stuff in your Vagrantfile"
Expand Down