24 lines
948 B
Bash
24 lines
948 B
Bash
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf
|
|
# sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf
|
|
# sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf
|
|
|
|
mkinitcpio -p linux
|
|
# mkinitcpio -p linux-lts
|
|
|
|
bootctl install # be aware of Problems by dualbooting
|
|
|
|
# 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
|
|
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="LABLE=arch" rw' >> /boot/loader/entries/arch.conf
|