;;
virtualbox)
iroot virtualbox 1
+ if imenu -c "would you like to install virtualbox guest additions?"; then
+ iroot guestadditions 1
+ fi
;;
other)
iroot othervm 1
gxkb \
udiskie \
gedit \
+ ttf-liberation \
mpv \
gvfs-mtp \
unzip \
done
+# iso for postinstall guestadditions
+if iroot guestadditions; then
+ echo "installing virtualbox guest addidions"
+ pacman -S --noconfirm --needed virtualbox-guest-iso
+fi
+
# not present on artix
if command -v systemctl; then
pacman -S --noconfirm --needed steam steam-native-runtime
bash ./lang/xorg.sh
sleep 0.5
bash ./lang/locale.sh
+bash ./vm/guestadditions.sh
--- /dev/null
+#!/bin/bash
+
+if ! iroot guestadditions; then
+ exit
+fi
+
+mkdir -p /media/virtualbox
+mount /usr/lib/virtualbox/additions/*.iso /media/virtualbox
+echo "installing virtualbox guest additions. This will take some time.
+It is normal for the first reboot after the installation of guest additions to take longer. " | imenu -M &
+
+sleep 2
+cd /media/virtualbox
+
+./VBoxLinuxAdditions.run
+
+pkill imenu
+sleep 2
+reboot