From 31616851b763e536b547c1310f8b70d4b54a3fa7 Mon Sep 17 00:00:00 2001 From: cronyakatsuki <64900606+cronyakatsuki@users.noreply.github.com> Date: Sat, 5 Nov 2022 10:36:20 +0100 Subject: [PATCH] Added silent boot and auto login for user. --- arch_install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch_install.sh b/arch_install.sh index 6f52e43..b0c6a0d 100755 --- a/arch_install.sh +++ b/arch_install.sh @@ -330,6 +330,14 @@ usermod -a $username -G audio read -n 1 -s -p "To continue press any key" +printf '%s\n' "Setting up silent boot and autologin" +mkdir -p /etc/sysctl.d +printf '%s\n' "kernel.printk = 3 3 3 3" > /etc/sysctl.d/20-quiet-printk.conf +mkdir -p /etc/systemd/system/getty@tty1.service.d +printf '%s\n' "[Service] +ExecStart= +ExecStart=-/usr/bin/agetty --skip-login --nonewline --noissue --autologin $username --noclear %I \$TERM" > /etc/systemd/system/getty@tty1.service.d/skip-prompt.conf + ai3_path=/home/$username/arch_install3.sh sed '1,/^#part3$/d' arch_install2.sh > $ai3_path chown $username:$username $ai3_path