]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci(gentoo): force hostonly mode as this is the config recommended by Gentoo wiki
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 19 Nov 2024 00:41:31 +0000 (19:41 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 19 Nov 2024 09:12:20 +0000 (04:12 -0500)
See https://wiki.gentoo.org/wiki/Dracut.

test/container/Dockerfile-gentoo

index c9d30389273a7629b97f9401ee456ed2b75d485c..dbb42e6b9656a4d7d11aa805fdd42983f32601ca 100644 (file)
@@ -85,6 +85,10 @@ if [ "$OPTION" = "systemd" ] ; then \
 ; 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
+    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