packer-arch/scripts/install-parallels.sh
Christian Kotte 090a1cb9a6 Improve script output
The '==>' prefix is used by pacstrap, pacman, and mkinitcpio. A new
prefix is needed to better differentiate the output of the script from
the output of the programs mentioned above.
Also adding more output to the different steps helps during troubleshooting.
2020-08-13 15:53:08 -07:00

20 lines
603 B
Bash
Executable file

#!/usr/bin/bash -x
# Parallels Tools
# https://wiki.archlinux.org/index.php/Parallels
echo ">>>> install-virtualbox.sh: Installing Parallels Tools.."
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
echo ">>>> install-virtualbox.sh: Cleaning 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