From 506ee51135b4c6b252b15f708389ff36291a1389 Mon Sep 17 00:00:00 2001 From: Lyanis Souidi Date: Tue, 30 Apr 2024 01:47:47 +0200 Subject: [PATCH] Add AUR packages install --- scripts/sandbox-install | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) 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