root user password && network manager

This commit is contained in:
array-in-a-matrix 2021-11-02 11:57:01 -04:00
parent aa60b20336
commit 21bce38ac7
1 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
HOSTNAME="archlinux"
ROOT_PWD="linux"
sfdisk /dev/sda < partition_table;
mkfs.xfs -f /dev/sda1;
@ -10,10 +13,20 @@ pacstrap /mnt base linux && genfstab /mnt > /mnt/etc/fstab;
arch-chroot /mnt;
pacman -Sy --noconfirm grub;
echo $HOSTNAME > /etc/hostname;
echo "127.0.0.1 localhost
::1 localhost
127.0.1.1 $HOSTNAME" > /etc/hosts;
echo -en $ROOT_PWD | passwd;
pacman -Sy --noconfirm grub NetworkManager;
grub-install /dev/sda && grub-mkconfig -o /boot/grub/grub.cfg;
systemctl enable --now NetworkManager.service;
exit;
reboot;