Mod.sh in base.sh integriert

This commit is contained in:
eichehome 2021-12-11 19:35:28 +01:00
parent 4e266ad725
commit 1b6f8e5f64
2 changed files with 25 additions and 24 deletions

25
base.sh
View file

@ -37,6 +37,31 @@ systemctl enable firewalld
systemctl enable acpid systemctl enable acpid
systemctl enable iwd systemctl enable iwd
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
# Systemd-networkd (for wlan0) # Systemd-networkd (for wlan0)
echo "[Match]" >> /etc/systemd/network/25-wireless.network echo "[Match]" >> /etc/systemd/network/25-wireless.network
echo "Name=wlan0" >> /etc/systemd/network/25-wireless.network echo "Name=wlan0" >> /etc/systemd/network/25-wireless.network

24
mod.sh
View file

@ -1,24 +0,0 @@
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