Update install.sh, install.md, arch.conf
This commit is contained in:
parent
695b833d13
commit
78bdc8e635
|
@ -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
|
||||
|
|
|
@ -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:**
|
||||
```
|
||||
|
|
29
install.sh
29
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
|
||||
|
|
Loading…
Reference in New Issue