Added password change, fixed first EOF problem, disable tty0 after enabling ly
This commit is contained in:
16
install.sh
16
install.sh
@@ -47,6 +47,7 @@ systemctl enable NetworkManager
|
||||
systemctl enable ufw
|
||||
systemctl enable clamav-daemon
|
||||
systemctl enable ly
|
||||
systemctl disable getty@tty0.service
|
||||
systemctl enable bluetooth
|
||||
|
||||
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
|
||||
mkinitcpio -P
|
||||
|
||||
echo -n "$ROOT_PASS" | passwd
|
||||
echo -n "root:$ROOT_PASS" | chpasswd
|
||||
|
||||
bootctl install
|
||||
|
||||
cat <<EOF > /boot/loader/loader.conf
|
||||
default arch.conf
|
||||
timeout 3
|
||||
console-mode max
|
||||
editor no
|
||||
EOF
|
||||
echo "default arch.conf\ntimeout 3\nconsole-mode max\neditor no" >> /boot/loader/loader.conf
|
||||
|
||||
UUID=$(blkid -s UUID -o value "${PART}3")
|
||||
|
||||
cat <<EOF > /boot/loader/entries/arch.conf
|
||||
title Arch Linux
|
||||
linux /vmlinuz-linux
|
||||
initrd /initramfs-linux.img
|
||||
options cryptdevice=UUID=$UUID:roothome root=/dev/mapper/roothome rw
|
||||
linux /boot/vmlinuz-linux
|
||||
initrd /boot/initramfs-linux.img
|
||||
options rd.luks.name=$UUID:roothome root=/dev/mapper/roothome rw
|
||||
EOF
|
||||
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user