* Do some better linting * Update names, Packer version, and more * Do not lint on push * More linting and scripting * Cleanup shellcheck lint * Add Packer format check * Fix Packer formatting * Limit to only one * Remove generated HCL files * Only lint checked files * Use pipes instead * Improve attempt to build Actually go back to attempting to build boxes on GitHub. Maybe it will work better with this structure * Change to using environment files * Initialize plugins, first * More verbose usage of the file * Do the output properly this time * PACKER_LOG set to 1 * No need for python3 anymore * Limit to only one result * Choose a specific CPU model * Init separately * Update actions version * Add version outputting * Correct actions version * Try to execute qemu properly * Fix CPU model name * Do not over-subscribe GitHub runners * Try type instead of command to guard runs * Do not write to non-existent folder * Cache packer plugins * Use ~ instead of /home/greg * Try the proper path * Move to intelligent matrix * Set global env path * Add lots of waits for VBoxManage on hosted runners * Add more waits * Add more waits
30 lines
670 B
Bash
Executable File
30 lines
670 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
# Name of the file to write out
|
|
name="${0%.sh}"
|
|
|
|
baseurl="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso"
|
|
checksums="$(mktemp)"
|
|
until curl -f -L -o "${checksums}" "${baseurl}.SHA256SUM"; do
|
|
sleep 1
|
|
done
|
|
sha="$(awk '/SHA256/ {print $4}' "${checksums}")"
|
|
rm "${checksums}"
|
|
|
|
cat << HERPDERP > "${name}"
|
|
distro = "centos-stream"
|
|
version = "9"
|
|
iso = {
|
|
url = "${baseurl}"
|
|
checksum = "${sha}"
|
|
}
|
|
boot_command = [
|
|
"<up><tab><wait><bs><bs><bs><bs><bs>",
|
|
"inst.text <wait>inst.ks=cdrom:/ks.cfg <wait>console=tty0",
|
|
"<enter><wait>"
|
|
]
|
|
cd_files = [ "distros/centos-stream/9/disc/*" ]
|
|
HERPDERP
|