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
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 \
net-misc/dhcp \
sys-apps/busybox \
sys-block/nbd \
- sys-block/open-iscsi \
sys-block/parted \
sys-fs/btrfs-progs \
sys-fs/cryptsetup \