summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall-artix.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/install-artix.sh b/install-artix.sh
index 1b47ec6..5279d06 100755
--- a/install-artix.sh
+++ b/install-artix.sh
@@ -246,10 +246,11 @@ if [[ "${encrypt}" == true ]]; then
basestrap /mnt cryptsetup-dinit
fi
-basestrap /mnt {iwd,dhcpcd,openntpd,cronie,openssh,ufw,dbus,seatd}-dinit
+basestrap /mnt --needed \
+ {iwd,dhcpcd,openntpd,cronie,openssh,ufw,dbus,seatd}-dinit
# Enable services
-services="dbus ufw iwd dhcpcd openntpd cronie turnstiled"
+services="dbus ufw iwd openntpd cronie turnstiled seatd"
# NOTE: do not quote 'services' variable or space is ignored
for service in ${services}; do
artix-chroot /mnt bash -c \
@@ -324,6 +325,10 @@ sed "s/# Misc options/# Misc options\n${pac_options}/g" \
# Enable firewall
sed "s/ENABLED=no/ENABLED=yes/" -i /mnt/etc/ufw/ufw.conf
+# Enable iwd's built-in DHCP
+printf "[General]\nEnableNetworkConfiguration=true" \
+ > /mnt/etc/iwd/main.conf
+
# Set MAKEFLAGS to match CPU threads for faster compiling
cp /etc/makepkg.conf /etc/makepkg.conf.bak
sed "s/#MAKEFLAGS=\".*\"/MAKEFLAGS=\"-j$(nproc)\"/" \