Hi guys. I want to build custom Gentoo image, one based on hardened+nomultilib stage, and another one based on hardened+nomultilib+selinux stage. I’m going to setup own binary package server on Gentoo in the LXD container for my server.
I have following questions:
Is it a good idea to run SELinux inside container or is it a better idea to use virtual machine?
Is it possible to tell distrobuilder to download hardened+nomultilib stage instead of normal one?
What do you think about manually setting up chroot and packing LXD image using distrobuilder?
Is LXD compatible with SELinux? I’m not sure if I can use SELinux on production server using LXD as a container technology.
I tried to look at the example config but I literally have no idea how to force gentoo-http downloader to download stage3-amd64-hardened-nomultilib-openrc-20210822T170550Z.tar.xz image instead of stage3-amd64-20210630T214504Z.tar.xz.
Otherwise it might also be possible to switch to the desired version inside the distro itself.
For example by setting the right repos (/etc/portage/repos.conf - Gentoo Wiki) and installing the right packages.