From 21bce38ac758cdb8257604a04e4c5ea932b38b04 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Tue, 2 Nov 2021 11:57:01 -0400 Subject: [PATCH] root user password && network manager --- btw-i-use-arch | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/btw-i-use-arch b/btw-i-use-arch index 8fb2911..46ede73 100644 --- a/btw-i-use-arch +++ b/btw-i-use-arch @@ -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;