packer-arch/scripts/install-parallels.sh
Aaron Bull Schaefer d5adbc3f10 Remove duplication in installation scripts
Instead of having mostly duplicate scripts for the entire installation
process, we can split them up into the base installation steps and then
run shell provisioners for anything specific to each of the types after
the machine has rebooted.

This structure will mean less chance of error when making changes to
machines, and will also allow for expansion of the scripts to be run at
the end, such as adding a minimization script to remove history and
clear out space on the drive before compression.
2016-02-08 09:27:41 -08:00

18 lines
490 B
Bash
Executable file

#!/usr/bin/bash -x
# Parallels Tools
# https://wiki.archlinux.org/index.php/Parallels
mount /dev/sr1 /mnt
ln -sf /usr/lib/systemd/scripts/ /etc/init.d
export def_sysconfdir=/etc/init.d
touch /etc/X11/xorg.conf
pacman -S --noconfirm python2 linux-headers
ln -sf /usr/bin/python2 /usr/local/bin/python
/mnt/install --install-unattended
# clean up
umount /dev/sr1
/usr/bin/pacman -Rcns --noconfirm python2 linux-headers
rm -f /etc/init.d
rm -f /etc/X11/xorg.conf
rm -f /usr/local/bin/python