]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci(opensuse): switch from dnf to zypper for package management
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 29 Dec 2024 00:06:24 +0000 (19:06 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 29 Dec 2024 00:53:56 +0000 (19:53 -0500)
zypper is the recommended package manager for openSUSE.

Also mkosi openSUSE package has a dependency on zypper.

test/container/Dockerfile-opensuse

index 89a6043576b327f81fa05cf3050767ec3de54e01..08fafaad0e3cd94866651ecc809bf3d096267a60 100644 (file)
@@ -4,13 +4,13 @@
 # - hmaccalc (fido)
 # - rdma out of tree dracut module
 
-FROM registry.opensuse.org/opensuse/tumbleweed-dnf:latest
+FROM registry.opensuse.org/opensuse/tumbleweed:latest
 
 # prefer running tests with btrfs
 ENV TEST_FSTYPE=btrfs
 
 # Install needed packages for the dracut CI container
-RUN dnf -y install --setopt=install_weak_deps=False \
+RUN zypper --non-interactive install --no-recommends \
     asciidoc \
     bash-completion \
     btrfsprogs \
@@ -52,7 +52,7 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     tpm2.0-tools \
     /usr/bin/qemu-system-$(uname -m) \
     util-linux-systemd \
-    && dnf -y update && dnf clean all
+    && zypper --non-interactive dist-upgrade --no-recommends && zypper --non-interactive clean
 
 # force non-hostonly mode, but keep all the other config
 RUN \