mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-01-23 02:14:40 +00:00
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.
16 lines
688 B
Bash
Executable file
16 lines
688 B
Bash
Executable file
#!/usr/bin/bash -x
|
|
|
|
# VirtualBox Guest Additions
|
|
# https://wiki.archlinux.org/index.php/VirtualBox/Install_Arch_Linux_as_a_guest
|
|
echo ">>>> install-virtualbox.sh: Installing VirtualBox Guest Additions and NFS utilities.."
|
|
/usr/bin/pacman -S --noconfirm virtualbox-guest-utils-nox nfs-utils
|
|
|
|
echo ">>>> install-virtualbox.sh: Enabling VirtualBox Guest service.."
|
|
/usr/bin/systemctl enable vboxservice.service
|
|
|
|
echo ">>>> install-virtualbox.sh: Enabling RPC Bind service.."
|
|
/usr/bin/systemctl enable rpcbind.service
|
|
|
|
# Add groups for VirtualBox folder sharing
|
|
echo ">>>> install-virtualbox.sh: Enabling VirtualBox Shared Folders.."
|
|
/usr/bin/usermod --append --groups vagrant,vboxsf vagrant
|