]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: add dmraid to Debian and Gentoo container to run test 14
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 5 Dec 2022 15:54:07 +0000 (15:54 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Thu, 15 Dec 2022 14:23:24 +0000 (15:23 +0100)
test/container/Dockerfile-Debian
test/container/Dockerfile-Gentoo

index a2fb1657d812282fd62a71095f320beb33b1b72a..cb6dda7ff591275e6fcd5e8c1a9a9aeadb9d2e4f 100644 (file)
@@ -34,6 +34,7 @@ RUN apt-get update -y -qq && apt-get upgrade -y -qq && DEBIAN_FRONTEND=nonintera
     isc-dhcp-server \
     kmod \
     less \
+    libdmraid-dev \
     libkmod-dev \
     linux-image-generic \
     lvm2 \
@@ -60,5 +61,13 @@ RUN apt-get update -y -qq && apt-get upgrade -y -qq && DEBIAN_FRONTEND=nonintera
     wget \
     && apt-get clean
 
+# workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962300
+RUN DEBIAN_FRONTEND=noninteractive apt-get download dmraid \
+    && DEBIAN_FRONTEND=noninteractive dpkg --unpack dmraid*.deb \
+    && rm -rf /var/lib/dpkg/info/dmraid.postinst -f \
+    && DEBIAN_FRONTEND=noninteractive dpkg --configure dmraid \
+    && apt-get install -yf \
+    && apt-get clean
+
 # Set default command
 CMD ["/usr/bin/bash"]
index deee15f67df269f130b9f99b2d3b58452f2f15e8..e81375f686533a8c315f5cd336a3a674b28ef902 100644 (file)
@@ -28,6 +28,7 @@ RUN emerge -qv \
     sys-apps/busybox \
     sys-block/parted \
     sys-fs/btrfs-progs \
+    sys-fs/dmraid \
     sys-fs/lvm2 \
     sys-fs/ntfs3g \
     sys-fs/squashfs-tools \