Make CentOS 7 build after EOL
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user