File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 22# vi: set ft=ruby :
33
44Vagrant . configure ( "2" ) do |config |
5- config . vm . box = "fedora-40 "
5+ config . vm . box = "fedora-41 "
66 # For URL, check https://www.fedoraproject.org/cloud/download
7- config . vm . box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/40 /Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-libvirt.x86_64-40 -1.14 .vagrant.libvirt.box"
7+ config . vm . box_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/41 /Cloud/x86_64/images/Fedora-Cloud-Base-Vagrant-libvirt-41 -1.4.x86_64 .vagrant.libvirt.box"
88 config . vm . provider :virtualbox do |v |
99 v . memory = 2048
1010 v . cpus = 2
@@ -15,18 +15,12 @@ Vagrant.configure("2") do |config|
1515 end
1616 config . vm . provision "shell" , inline : <<-SHELL
1717 set -e -u -o pipefail
18- # Work around dnf mirror failures by retrying a few times
18+ DNF_OPTS="-y --setopt=install_weak_deps=False --setopt=tsflags=nodocs --exclude=kernel,kernel-core"
19+ RPMS="bats git-core glibc-static golang jq libseccomp-devel make"
20+ # Work around dnf mirror failures by retrying a few times.
1921 for i in $(seq 0 2); do
2022 sleep $i
21- # "config exclude" dnf shell command is not working in Fedora 35
22- # (see https://bugzilla.redhat.com/show_bug.cgi?id=2022571);
23- # the workaround is to specify it as an option.
24- cat << EOF | dnf -y --exclude=kernel,kernel-core shell && break
25- config install_weak_deps false
26- update
27- install iptables gcc golang-go make glibc-static libseccomp-devel bats jq git-core criu fuse-sshfs container-selinux
28- ts run
29- EOF
23+ dnf $DNF_OPTS update && dnf $DNF_OPTS install $RPMS && break
3024 done
3125 dnf clean all
3226
You can’t perform that action at this time.
0 commit comments