diff --git a/scripts/sandbox-install b/scripts/sandbox-install index 4e2b254..a508751 100644 --- a/scripts/sandbox-install +++ b/scripts/sandbox-install @@ -29,6 +29,11 @@ PACKAGES_AUR=( "ncurses5-compat-libs" ) +SERVICES=( + "systemd-networkd.service" "systemd-resolved.service" "systemd-timesyncd.service" + "fstrim.service" "docker.service" "ovs-vswitchd.service" +) + SWAP_SIZE=16G # Enable time synchronization @@ -139,11 +144,21 @@ LABEL arch APPEND root=/dev/sda2 rw resume=/dev/sda1 " > /boot/syslinux/syslinux.cfg +# Install AUR packages +useradd --no-user-group -g users --create-home --home-dir /tmp/aur-install aur-install +echo "aur-install ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/aur-install +su aur-install +cd /tmp/aur-install +git clone https://aur.archlinux.org/yay.git +cd yay +makepkg --syncdeps --install --needed --noconfirm +yay -Syu --noconfirm "${PACKAGES_AUR[@]}" +exit +rm /etc/sudoers.d/aur-install +userdel --remove --force aur-install + # Enable the services -systemctl enable systemd-networkd.service -systemctl enable systemd-resolved.service -systemctl enable systemd-timesyncd.service -systemctl enable fstrim.service +systemctl enable "${SERVICES[@]}" EOF