diff options
| -rwxr-xr-x | install-artix.sh | 12 |
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 |
