Begin adding VMWare

This commit is contained in:
Greg Hellings
2023-08-15 11:23:29 -05:00
committed by greg-compass
parent 15044c8fb9
commit a56b40249b
17 changed files with 35 additions and 27 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
set -ex
port="${1}" # HTTP port that packer is running on
host="${2}"
loadkeys en # Probably not necessary in a script, but here we are
@@ -40,7 +41,7 @@ pacstrap -K /mnt base linux nano sudo networkmanager openssh grub python3
genfstab -L /mnt >> /mnt/etc/fstab
# Run stuff in the chroot
curl -o /mnt/in-chroot.sh http://10.0.2.2:"${port}"/in-chroot.sh
curl -o /mnt/in-chroot.sh "http://${host}:${port}/in-chroot.sh"
arch-chroot /mnt /usr/bin/bash /in-chroot.sh "${disk}"
rm /mnt/in-chroot.sh