summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-04-17 01:31:34 +0100
committerBlake Romero <blake@blkrom.com>2024-04-17 01:31:34 +0100
commitb230454d25bba55a581e4c55d0ba94e7c20af06e (patch)
treeb56565b95bd412ef29c8626a174058b1eff709d3
parent93480b213e2ab77f86d0fc3101245b863cb9f992 (diff)
Replace runit cryptsetup service to dinit
-rwxr-xr-xinstall-artix.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/install-artix.sh b/install-artix.sh
index ae730b9..1a53b5b 100755
--- a/install-artix.sh
+++ b/install-artix.sh
@@ -213,14 +213,14 @@ basestrap /mnt \
btrfs-progs mkinitcpio-nfs-utils \
git nano man-db man-pages "${ucode}" \
-# Install runit services
+# Install crypt service
if [[ "${encrypt}" == true ]]; then
- basestrap /mnt cryptsetup-runit
+ basestrap /mnt cryptsetup-dinit
fi
basestrap /mnt {iwd,dhcpcd,openntpd,cronie,openssh,ufw,dbus}-dinit
-# Enable runit services
+# Enable services
services="dbus ufw iwd dhcpcd openntpd cronie"
# NOTE: do not quote 'services' variable or space is ignored
for service in ${services}; do
@@ -272,8 +272,10 @@ ${user} ALL=(ALL) NOPASSWD: PACMAN,REBOOT,STAT
# Add user to autologin (note: password must match decryption password)
if [[ "${autologin}" == true ]]; then
- sed "s/GETTY_ARGS=\".*\"/GETTY_ARGS=\"--noclear --autologin ${user}\"/" \
- -i /mnt/etc/runit/sv/agetty-tty1/conf
+ cp /mnt/etc/dinit.d/config/agetty-default.conf \
+ /mnt/etc/dinit.c/config/agetty-tty1.conf
+ sed "s/GETTY_ARGS=.*/GETTY_ARGS=\"--noclear --autologin ${user}\"/" \
+ -i /mnt/etc/dinit.c/config/agetty-tty1.conf
fi
# Add PACMAN download style