Added password change, fixed first EOF problem, disable tty0 after enabling ly

This commit is contained in:
0x221E
2026-02-10 18:57:16 +01:00
parent 564cec537b
commit 639369a56e

View File

@@ -47,6 +47,7 @@ systemctl enable NetworkManager
systemctl enable ufw systemctl enable ufw
systemctl enable clamav-daemon systemctl enable clamav-daemon
systemctl enable ly systemctl enable ly
systemctl disable getty@tty0.service
systemctl enable bluetooth systemctl enable bluetooth
ufw default deny incoming ufw default deny incoming
@@ -56,24 +57,19 @@ ufw enable
sed -i 's/HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)/HOOKS=(base udev autodetect modconf keyboard encrypt block filesystems fsck)/' /etc/mkinitcpio.conf sed -i 's/HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)/HOOKS=(base udev autodetect modconf keyboard encrypt block filesystems fsck)/' /etc/mkinitcpio.conf
mkinitcpio -P mkinitcpio -P
echo -n "$ROOT_PASS" | passwd echo -n "root:$ROOT_PASS" | chpasswd
bootctl install bootctl install
cat <<EOF > /boot/loader/loader.conf echo "default arch.conf\ntimeout 3\nconsole-mode max\neditor no" >> /boot/loader/loader.conf
default arch.conf
timeout 3
console-mode max
editor no
EOF
UUID=$(blkid -s UUID -o value "${PART}3") UUID=$(blkid -s UUID -o value "${PART}3")
cat <<EOF > /boot/loader/entries/arch.conf cat <<EOF > /boot/loader/entries/arch.conf
title Arch Linux title Arch Linux
linux /vmlinuz-linux linux /boot/vmlinuz-linux
initrd /initramfs-linux.img initrd /boot/initramfs-linux.img
options cryptdevice=UUID=$UUID:roothome root=/dev/mapper/roothome rw options rd.luks.name=$UUID:roothome root=/dev/mapper/roothome rw
EOF EOF
EOF EOF