Bootloader added
This commit is contained in:
parent
a526e707ae
commit
ea25859fa4
1 changed files with 18 additions and 0 deletions
18
install.sh
18
install.sh
|
@ -44,3 +44,21 @@ systemctl enable cups
|
||||||
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
|
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
|
||||||
|
|
||||||
mkinitcpio -p linux
|
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
|
||||||
|
|
Loading…
Reference in a new issue