File: vm.daily

package info (click to toggle)
cockpit 355-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,568 kB
  • sloc: javascript: 774,787; python: 40,655; ansic: 35,157; cpp: 11,141; sh: 3,512; makefile: 580; xml: 261
file content (22 lines) | stat: -rw-r--r-- 894 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# Prepare VM for "daily" scenario: Run tests against various upstream COPRs
set -eux
# image-customize hides stdout by default
exec >&2
dnf -y copr enable rpmsoftwaremanagement/dnf-nightly
dnf -y copr enable @storage/udisks-daily
dnf -y --setopt=install_weak_deps=False update

grep -q 'ID=.*fedora' /etc/os-release

# systemd main branch builds
. /etc/os-release
fedora_release="Fedora_${VERSION_ID}"
echo "https://download.opensuse.org/repositories/system:systemd/${fedora_release}/system:systemd.repo"
dnf config-manager addrepo --from-repofile="https://download.opensuse.org/repositories/system:systemd/${fedora_release}/system:systemd.repo"
dnf -y update --repo=system_systemd --setopt=install_weak_deps=False

# https://github.com/fedora-selinux/selinux-policy/issues/2947
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config

/var/lib/download-package-sets.sh