echo 'sys-apps/systemd ukify qrcode cryptsetup' >> /etc/portage/package.use/systemd ;\
# Support thin volumes and build all of LVM2 including daemons and tools like lvchange \
echo 'sys-fs/lvm2 thin lvm' >> /etc/portage/package.use/lvm2 ;\
+ # force hostonly mode as this is the config recommended by https://wiki.gentoo.org/wiki/Dracut \
+ mkdir -p /usr/lib/dracut/dracut.conf.d/ ;\
+ echo 'hostonly="yes"' > /usr/lib/dracut/dracut.conf.d/50-hostonly.conf ;\
# Ensure everything is up to date before we start \
emerge --quiet --update --deep --newuse --autounmask-continue=y --with-bdeps=y @world
# Dependencies to pass basic test
-RUN emerge --quiet --deep --autounmask-continue=y --with-bdeps=n --noreplace \
+RUN \
+emerge --quiet --deep --autounmask-continue=y --with-bdeps=n --noreplace \
app-alternatives/cpio \
app-arch/cpio \
app-emulation/qemu \
sys-kernel/gentoo-kernel-bin \
sys-libs/libxcrypt \
virtual/libelf \
- virtual/pkgconfig
-
-# Dependencies for full testsuite
-RUN \
+ virtual/pkgconfig ;\
+# Dependencies for full testsuite \
if [ "$OPTION" = "systemd" ] ; then \
emerge --quiet --deep --autounmask-continue=y --with-bdeps=n --noreplace \
app-alternatives/bc \
sys-fs/multipath-tools \
sys-fs/squashfs-tools \
sys-libs/glibc \
-; fi
-
-# cleanup
-# force hostonly mode as this is the config recommended by Gentoo wiki
-# https://wiki.gentoo.org/wiki/Dracut
-RUN \
- rm -rf /var/cache/* /usr/share/doc/* /usr/share/man/* ;\
- emerge --depclean --with-bdeps=n ;\
- mkdir -p /usr/lib/dracut/dracut.conf.d/ ;\
- echo 'hostonly="yes"' > /usr/lib/dracut/dracut.conf.d/50-hostonly.conf
+; fi ;\
+rm -rf /var/cache/* /usr/share/doc/* /usr/share/man/* ;\
+emerge --depclean --with-bdeps=n