From ea25859fa4f2507ffa1043bd8560421897d5cf8f Mon Sep 17 00:00:00 2001 From: eichehome Date: Sun, 16 Jan 2022 22:49:06 +0100 Subject: [PATCH] Bootloader added --- install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/install.sh b/install.sh index 6ef02ad..d2ef04d 100644 --- a/install.sh +++ b/install.sh @@ -44,3 +44,21 @@ systemctl enable cups sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf mkinitcpio -p linux + +bootctl install + +# Bootloaderconfig +sed -i 's/#\(timeout\)\s[0-9]/\1 5/' /boot/loader/loader.conf +sed -i 's/#\(console\)/\1/' /boot/loader/loader.conf +sed -i 's/keep/max/' /boot/loader/loader.conf +sed -i 's/\(default\s\).*/\1arch.conf/' /boot/loader/loader.conf + +# Entry Arch +echo "title Arch Linux" >> /boot/loader/entries/arch.conf +echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf +# AMD +echo "initrd /amd-ucode.img" >> /boot/loader/entries/arch.conf +# Intel +# echo "initrd /intel-ucode.img" >> /boot/loader/entries/arch.conf +echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf +echo 'options root="LABEL=arch" rw' >> /boot/loader/entries/arch.conf