From b230454d25bba55a581e4c55d0ba94e7c20af06e Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Wed, 17 Apr 2024 01:31:34 +0100 Subject: Replace runit cryptsetup service to dinit --- install-artix.sh | 12 +++++++----- 1 file 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 -- cgit