File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change 2
2
# vi: set ft=ruby :
3
3
4
4
Vagrant . configure ( "2" ) do |config |
5
- config . vm . box = "fedora-40 "
5
+ config . vm . box = "fedora-41 "
6
6
# 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"
8
8
config . vm . provider :virtualbox do |v |
9
9
v . memory = 2048
10
10
v . cpus = 2
@@ -15,18 +15,12 @@ Vagrant.configure("2") do |config|
15
15
end
16
16
config . vm . provision "shell" , inline : <<-SHELL
17
17
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.
19
21
for i in $(seq 0 2); do
20
22
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
30
24
done
31
25
dnf clean all
32
26
You can’t perform that action at this time.
0 commit comments