Make CentOS 7 build after EOL

This commit is contained in:
Greg Hellings
2024-07-13 01:03:58 -05:00
parent 6d29120dc5
commit b8029ab985
2 changed files with 5 additions and 5 deletions
+5
View File
@@ -43,6 +43,11 @@ nmcli c
%end
%post --erroronfail
echo "gpgkey=https://vault.centos.org/7.9.2009/os/x86_64/RPM-GPG-KEY-CentOS-7" >> /etc/yum.repos.d/base.repo
echo "gpgkey=https://vault.centos.org/7.9.2009/os/x86_64/RPM-GPG-KEY-CentOS-7" >> /etc/yum.repos.d/updates.repo
rm -f /etc/yum.repos.d/CentOS*
yum -y update
cat <<EOF > /etc/sudoers.d/vagrant
-5
View File
@@ -1,11 +1,6 @@
#!/usr/bin/env bash
set -ex
for f in /etc/yum.repos.d/*; do
echo "$f"
cat "$f"
done
cat /etc/yum.conf || true
yum install -y qemu-guest-agent
systemctl start qemu-guest-agent
systemctl enable qemu-guest-agent