]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: migrate from systemd-boot to systemd-utils in Gentoo container
authorHenrik Gombos <henrik99999@gmail.com>
Mon, 31 Jul 2023 12:15:42 +0000 (08:15 -0400)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 1 Aug 2023 06:21:32 +0000 (08:21 +0200)
See https://www-cdn.gentoo.org/support/news-items/2022-04-19-systemd-utils.html

Also no longer include open-iscsi for musl as it fails to compile, see
https://bugs.gentoo.org/908587

test/container/Dockerfile-Gentoo

index 5a07580f6a031776d05125d72194686364028b20..f2bb5551de5bd4458786833ec3e953b4ce568725 100644 (file)
@@ -6,10 +6,8 @@ FROM docker.io/gentoo/stage3 as efistub
 COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
 
 # systemd-boot
-RUN mkdir -p /etc/portage/package.accept_keywords && \
-    echo "sys-boot/systemd-boot" >> /etc/portage/package.accept_keywords/systemd-boot && \
-    echo '>=sys-apps/systemd-utils-251.10 boot' > /etc/portage/package.use/systemd-boot && \
-    emerge -qv sys-boot/systemd-boot
+RUN echo 'sys-apps/systemd-utils boot' > /etc/portage/package.use/systemd-utils && \
+    emerge -qv sys-apps/systemd-utils
 
 # kernel and its dependencies in a separate builder
 FROM docker.io/gentoo/stage3:$TAG as kernel
@@ -28,13 +26,15 @@ ARG TAG
 MAINTAINER https://github.com/dracutdevs/dracut
 
 # required by sys-fs/dmraid
-RUN echo '>=sys-fs/lvm2-2.03.20 lvm thin' > /etc/portage/package.use/lvm2
+RUN echo 'sys-fs/lvm2 lvm thin' > /etc/portage/package.use/lvm2
 
 # workaround for https://bugs.gentoo.org/734022 whereby Gentoo does not support NFS4 with musl
 RUN if [[ "$TAG" == 'musl' ]]; then echo 'net-fs/nfs-utils -nfsv4' > /etc/portage/package.use/nfs-utils ; fi
 
-# workaround for https://bugs.gentoo.org/713490 whereby Gentoo does not support tgt with musl
-RUN if [[ "$TAG" != 'musl' ]]; then emerge -qv sys-block/tgt ; fi
+# workaround for packages do not compile on musl
+# https://bugs.gentoo.org/713490 for tgt
+# https://bugs.gentoo.org/908587 for open-iscsi
+RUN if [[ "$TAG" != 'musl' ]]; then emerge -qv sys-block/tgt sys-block/open-iscsi ; fi
 
 # Install needed packages for the dracut CI container
 RUN emerge -qv \
@@ -45,7 +45,6 @@ RUN emerge -qv \
     net-misc/dhcp \
     sys-apps/busybox \
     sys-block/nbd \
-    sys-block/open-iscsi \
     sys-block/parted \
     sys-fs/btrfs-progs \
     sys-fs/cryptsetup \