]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: install newly created systemd-cryptsetup into Debian/Ubuntu containers
authorJo Zzsi <jozzsicsataban@gmail.com>
Wed, 23 Oct 2024 21:49:06 +0000 (17:49 -0400)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 24 Oct 2024 00:29:23 +0000 (20:29 -0400)
test/container/Dockerfile-debian
test/container/Dockerfile-ubuntu

index 2ab8ae8a18ccaaa9a32df7cadf339b09e3e9f2b0..0f65c5c0125fc65e234b41d80c71f86c4c100f1d 100644 (file)
@@ -1,12 +1,23 @@
 ARG DISTRIBUTION=debian
 FROM docker.io/${DISTRIBUTION}
 
+# export ARG
+ARG DISTRIBUTION
+
 # dmraid is no longer installed
 # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056944
 
 # Install needed packages for the dracut CI container
 # Install dracut as a linux-initramfs-tool provider so that the default initramfs-tool package does not get installed
-RUN apt-get update -y -qq && apt-get upgrade -y -qq && apt-get install -y -qq --no-install-recommends dracut && \
+RUN apt-get update -y -qq && apt-get upgrade -y -qq && apt-get install -y -qq --no-install-recommends dracut
+
+# extra packages for sid
+RUN if [ "$DISTRIBUTION" = "debian:sid" ] ; then \
+    DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -o Dpkg::Use-Pty=0 \
+    systemd-cryptsetup \
+    ; fi
+
+RUN \
     DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -o Dpkg::Use-Pty=0 \
     asciidoc \
     asciidoctor \
index 223aad439d19b89a6ababce27c073e2ff994d3f4..ed0215c816fdf8c233060caddf731c6eafd733e5 100644 (file)
@@ -1,12 +1,23 @@
 ARG DISTRIBUTION=ubuntu
 FROM docker.io/${DISTRIBUTION}
 
+# export ARG
+ARG DISTRIBUTION
+
 # prefer running tests in verbose mode
 ENV V=2
 
 # Install needed packages for the dracut CI container
 # The Linux kernel is only readable by root. See https://launchpad.net/bugs/759725
-RUN apt-get update -y -qq && apt-get upgrade -y -qq && \
+RUN apt-get update -y -qq && apt-get upgrade -y -qq
+
+# extra packages for rolling
+RUN if [ "${DISTRIBUTION}" = "ubuntu:rolling" ] ; then \
+    DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -o Dpkg::Use-Pty=0 \
+    systemd-cryptsetup \
+    ; fi
+
+RUN \
     DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -o Dpkg::Use-Pty=0 \
     asciidoc \
     asciidoctor \