Debian Codegraph @

test/vm.daily

raw
1 #!/bin/sh
2 # Prepare VM for "daily" scenario: Run tests against various upstream COPRs
3 set -eux
4 # image-customize hides stdout by default
5 exec >&2
6 dnf -y copr enable rpmsoftwaremanagement/dnf-nightly
7 dnf -y copr enable @storage/udisks-daily
8 dnf -y --setopt=install_weak_deps=False update
9
10 grep -q 'ID=.*fedora' /etc/os-release
11
12 # systemd main branch builds
13 . /etc/os-release
14 fedora_release="Fedora_${VERSION_ID}"
15 echo "https://download.opensuse.org/repositories/system:systemd/${fedora_release}/system:systemd.repo"
16 dnf config-manager addrepo --from-repofile="https://download.opensuse.org/repositories/system:systemd/${fedora_release}/system:systemd.repo"
17 dnf -y update --repo=system_systemd --setopt=install_weak_deps=False
18
19 # https://github.com/fedora-selinux/selinux-policy/issues/2947
20 sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
21
22 /var/lib/download-package-sets.sh