2022-06-22 10:00:04 -05:00
|
|
|
%include /tmp/packer_ks/centos-stream/CentOS-9-Stream-x86_64-Vagrant.ks
|
|
|
|
|
|
2023-08-03 14:44:02 -05:00
|
|
|
url --metalink=https://mirrors.centos.org/metalink?arch=x86_64&repo=centos-baseos-9-stream
|
|
|
|
|
repo --name=AppStream --metalink=https://mirrors.centos.org/metalink?arch=x86_64&repo=centos-appstream-9-stream
|
|
|
|
|
reboot
|
2022-06-22 10:00:04 -05:00
|
|
|
|
2023-08-03 14:44:02 -05:00
|
|
|
%pre --interpreter /bin/bash --log /tmp/greg
|
|
|
|
|
set -ex
|
2022-06-22 10:00:04 -05:00
|
|
|
# This allows us to support virtualbox
|
2023-08-03 14:44:02 -05:00
|
|
|
mkdir /tmp/sr1
|
|
|
|
|
mount /dev/sr1 /tmp/sr1
|
|
|
|
|
cp -r /tmp/sr1/http /tmp/packer_ks
|
|
|
|
|
|
2022-06-22 10:00:04 -05:00
|
|
|
if [ ! -e /dev/vda ]; then
|
2023-08-03 14:44:02 -05:00
|
|
|
sed -i -e 's/drives=vda/drives=sda/' -e 's/ondisk=vda/ondisk=sda/' /tmp/packer_ks/centos-stream/*
|
2022-06-22 10:00:04 -05:00
|
|
|
fi
|
|
|
|
|
%end
|