]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: re-enable lvm on Gentoo container
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 18 May 2023 16:43:38 +0000 (16:43 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 19 Jun 2023 08:15:22 +0000 (10:15 +0200)
Gentoo changed it's policy and now lvm needs to be enabled explicitly.

See https://www.gentoo.org/support/news-items/2022-11-19-lvm2-default-USE-flags.html

No need to install thin-provisioning-tools explicitelly, it is
pulled in as a dependency of the lvm2 package.

test/container/Dockerfile-Gentoo

index 03f7917abd6aba0634efcfacb12c8527894a538a..96370abb2189651baabe8c311195c28c77fc71dc 100644 (file)
@@ -25,14 +25,12 @@ COPY --from=efistub /usr/lib/systemd/boot/efi /usr/lib/systemd/boot/efi
 
 MAINTAINER https://github.com/dracutdevs/dracut
 
-# Only install `dmsetup`: attempting to install all of lvm2 fails due to missing kernel headers.
-RUN echo 'sys-fs/lvm2 device-mapper-only -thin' > /etc/portage/package.use/lvm2
+# required by sys-fs/dmraid
+RUN echo '>=sys-fs/lvm2-2.03.20 lvm thin' > /etc/portage/package.use/lvm2
 
 # workaround for https://bugs.gentoo.org/734022 whereby Gentoo does not support NFS4 with musl
 RUN echo 'net-fs/nfs-utils -nfsv4' > /etc/portage/package.use/nfs-utils
 
-RUN echo '>=sys-fs/lvm2-2.03.17-r1 lvm' > /etc/portage/package.use/dmraid
-
 # Install needed packages for the dracut CI container
 RUN emerge -qv \
     app-arch/cpio \
@@ -44,7 +42,6 @@ RUN emerge -qv \
     sys-block/nbd \
     sys-block/open-iscsi \
     sys-block/parted \
-    sys-block/thin-provisioning-tools \
     sys-fs/btrfs-progs \
     sys-fs/cryptsetup \
     sys-fs/dmraid \