From 3e11d66b9e67827d8b04c0bb388477677d575d0a Mon Sep 17 00:00:00 2001 From: Mats van Reenen Date: Sat, 10 Sep 2022 19:39:36 +0200 Subject: [PATCH] add some utils and pass vars to in-root.sh --- arch-install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch-install.sh b/arch-install.sh index 575db65..729ffd1 100644 --- a/arch-install.sh +++ b/arch-install.sh @@ -1,4 +1,7 @@ +HOSTNAME="CoolhavenPC" +DISK="/dev/sda" + function run(){ echo "[ ] $1" echo "# $1" >>install.log @@ -21,7 +24,6 @@ echo "" >install.log # ENDEV=enp1s1 # IP=1.2.3.4/24 # GATEWAY=1.2.3.1 -HOSTNAME="CoolhavenPC" # ip addr add $IP dev $ENDEV # ip route add default via $GATEWAY dev $ENDEV @@ -45,8 +47,6 @@ echo echo === setup partitions -DISK="/dev/sda" - # fdisk $DISK # g # n # boot partition @@ -110,8 +110,8 @@ echo echo === install arch echo -run "install base of arch" "pacstrap /mnt base linux linux-firmware" -run "intall utitlities" "pacstrap /mnt btrfs-progs" +run "install base of arch" "pacstrap /mnt base linux linux-firmware grub efibootmgr" +run "intall utitlities" "pacstrap /mnt btrfs-progs man vim" echo "generate fstab" genfstab -U /mnt >>/mnt/etc/fstab @@ -121,4 +121,4 @@ echo echo === chroot config echo -arch-chroot /mnt bash /root/in-root.sh +arch-chroot /mnt bash /root/in-root.sh "$HOSTNAME" "$DISK"