Add AUR packages install

This commit is contained in:
Lyanis SOUIDI 2024-04-30 01:47:47 +02:00
parent 8d3e7e879c
commit 506ee51135

View File

@ -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