]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: do not remove native dracut installation from the test containers
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 25 Jul 2024 15:34:03 +0000 (11:34 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Thu, 25 Jul 2024 16:39:25 +0000 (12:39 -0400)
The change allows the CI to pick up distribution config from the dracut
package.

CI should be able to run not only in pristine default configuration,
but also in the configuration that the distribution set as the default.

As an example Fedora CI should run tests in hostonly mode (unless
specified otherwise).

Without this change some containers (e.g. Void, Ubunut, Arch) has the
native dracut package installed and some do not (e.g. Fedora).

test/container/Dockerfile-Debian
test/container/Dockerfile-Fedora-latest
test/container/Dockerfile-OpenSuse-latest

index 37a83a5d520a018aa1e9b8e476bdd1df13a674d7..e96b2d8d4ab8d996e680e78e349267bc7b2e830e 100644 (file)
@@ -65,4 +65,4 @@ RUN apt-get update -y -qq && apt-get upgrade -y -qq && apt-get install -y -qq --
     tpm2-tools \
     vim \
     wget \
-    && apt-get clean && dpkg -P --force-depends dracut dracut-core initramfs-tools-core
+    && apt-get clean
index 70ea199828ffe56ab4186d8d4d419a00765b0065..8217dbc6a86b5e6864bc4c052b19643d1a3f26c8 100644 (file)
@@ -69,4 +69,4 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     tpm2-tools \
     wget \
     xz \
-    && dnf -y remove dracut --noautoremove && dnf -y update && dnf clean all
+    && dnf -y update && dnf clean all
index 9857108fe5f0ac32c30ccbffe437880ba475e332..8844ab78ae1b8dfc602a63858127b6f13c50620c 100644 (file)
@@ -52,4 +52,4 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     util-linux-systemd \
     wget \
     xz \
-    && rpm -e --nodeps dracut && dnf -y update && dnf clean all
+    && dnf -y update && dnf clean all