Begin adding VMWare
This commit is contained in:
committed by
greg-compass
parent
15044c8fb9
commit
a56b40249b
@@ -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
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ boot_command = [
|
||||
"<wait60>", # Wait for system to come up?
|
||||
"curl -o /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh<enter>",
|
||||
"<wait5>",
|
||||
"/usr/bin/bash /tmp/install.sh {{ .HTTPPort }}<enter>"
|
||||
"/usr/bin/bash /tmp/install.sh {{ .HTTPPort }} {{ .HTTPIP }}<enter>"
|
||||
]
|
||||
http_directory = "distros/archlinux/rolling/http/"
|
||||
boot_wait = "10s"
|
||||
|
||||
@@ -3,3 +3,5 @@ rolling:
|
||||
provider: qemu
|
||||
- arch: x86_64
|
||||
provider: virtualbox-iso
|
||||
- arch: x86_64
|
||||
provider: vmware-iso
|
||||
|
||||
Reference in New Issue
Block a user