flatcar-scripts/sdk_container
Krzesimir Nowak 49fb14d782 overlay coreos-base/misc-files: Recreate a symlink on filesystem wipe
The path where the SELinux policy modules are built is normally
/var/lib/selinux. In our case we want to have those policies to be
installed somewhere under /usr. So we have a setup where
/var/lib/selinux is a symlink to /usr/lib/selinux/policy. The
/var/lib/selinux directory is normally created by
sys-apps/policycoreutils directory and we don't want to change it in
order to pursue the goal of putting the package back to
portage-stable.

On the other hand, the override of modules directory location can't
happen in the coreos-base/misc-files package, because
sys-apps/policycoreutils needs that directory to be already set up in
the package post installation time.

The override of the SELinux policy modules directory needs to be done
in the bashrc hook unfortunately. This will come in the follow-up
commit.

So the only thing left is to set up tmpfiles configuration file to
recreate the /var/lib/selinux symlink, since it can be removed when
wiping the filesystem.
2024-03-01 16:02:09 +01:00
..
.repo/manifests New version: main-3895.0.0-nightly-20240229-2100 2024-02-29 21:00:27 +00:00
src/third_party overlay coreos-base/misc-files: Recreate a symlink on filesystem wipe 2024-03-01 16:02:09 +01:00