You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
913 B
35 lines
913 B
#!/usr/bin/env bash
|
|
|
|
# mount efivars
|
|
|
|
mount -t efivarfs efivarfs /sys/firmware/efi/efivars/
|
|
|
|
# install bootloader
|
|
|
|
bootctl install
|
|
|
|
touch /boot/loader/entries/arch.conf
|
|
|
|
echo "title Arch" > /boot/loader/entries/arch.conf
|
|
echo "linux /vmlinuz-linux" >> /boot/loader/entries/arch.conf
|
|
echo "initrd /initramfs-linux.img" >> /boot/loader/entries/arch.conf
|
|
|
|
echo "options root=PARTUUID=$(blkid -S PARTUUID -o value /dev/sda3) rw" >> /boot/loader/entries/arch.conf
|
|
|
|
# install dhcpd service
|
|
|
|
sudo pacman -S dhcpcd
|
|
sudo systemctl enable dhcpcd@ADAPTER.service # EDIT "ADAPTER" WITH YOUR ADAPTER IN IP LINK
|
|
|
|
# install NetworkManager
|
|
|
|
sudo pacman -S networkmanager
|
|
sudo systemctl enable NetworkManager.service
|
|
|
|
|
|
echo "-------------------------------------------------"
|
|
echo "Arch Linux Installed & Configured - Reboot & Proceed to setup scripts"
|
|
echo "-------------------------------------------------"
|
|
|
|
exit
|
|
umount -R /mnt |