nfs-utils and dhcp is needed to test nfs.
nbd is needed to test nbd.
# 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
+RUN echo 'net-fs/nfs-utils -nfsv4' > /etc/portage/package.use/nfs-utils
+
# Install needed packages for the dracut CI container
RUN emerge -qv \
app-arch/cpio \
app-emulation/qemu \
app-shells/dash \
+ net-fs/nfs-utils \
+ net-misc/dhcp \
sys-apps/busybox \
+ sys-block/nbd \
sys-block/parted \
sys-block/thin-provisioning-tools \
sys-fs/btrfs-progs \