diff --git a/arch.conf b/arch.conf index 7ce4a40..010dcf7 100644 --- a/arch.conf +++ b/arch.conf @@ -12,7 +12,7 @@ linux /vmlinuz-linux initrd /initramfs-linux.img # Change to the correct device like /dev/sda2. -options cryptdevice=/dev/nvme0n1p2:main:allow-discards +options cryptdevice=/dev/vda2:lvm:allow-discards # Change to correct LVM device. options root=/dev/mapper/main-root rw diff --git a/install.md b/install.md index 409bfec..a676d5d 100644 --- a/install.md +++ b/install.md @@ -126,7 +126,7 @@ $ passwd $ bootctl install **Create the bootloader config.** -$ nano /bootloader/entries/arch.conf +$ nano /boot/loader/entries/arch.conf **Add the following:** ``` diff --git a/install.sh b/install.sh index a24444a..c21b688 100644 --- a/install.sh +++ b/install.sh @@ -11,7 +11,6 @@ echo "Done." # Installing base system. echo "Installing basic packages.." echo -e -pacstrap /mnt base base-devel firefox konsole linux linux-firmware linux-zen lvm2 networkmanager nano plasma-desktop sddm sddm-kcm && echo -e echo "Base system installed." echo -e @@ -64,3 +63,31 @@ echo "Done." echo "Setting root password:" arch-chroot /mnt passwd + +arch-chroot /mnt bootctl install + +cp ./arch.conf /mnt/boot/loader/entries +cp ./arch-fallback.conf /mnt/boot/loader/entries + +echo "timeout 1" >> /mnt/boot/loader/loader.conf +echo "default arch.conf" >> /mnt/boot/loader/loader.conf + +localectl --no-convert set-keymap de-latin1-nodeadkeys + +echo "Username?" +read user +useradd -m $user && +passwd $user && +gpasswd -a $user wheel + +sed -i '82s/.*/%wheel ALL=(ALL) ALL/' /mnt/etc/sudoers + +mkdir /mnt/etc/sddm.conf.d + +echo "[Autologin]" >> /mnt/etc/sddm.conf.d/autologin.conf +echo "User=hans" >> /mnt/etc/sddm.conf.d/autologin.conf +echo "Session=plasma" >> /mnt/etc/sddm.conf.d/autologin.conf + +umount /mnt/boot +umount /mnt/home +reboot