overlay coreos/config: Add Flatcar modifications for sys-libs/libsemanage

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2025-04-25 10:45:31 +02:00
parent 08870146fd
commit 01c453103b

View File

@ -0,0 +1,17 @@
# A hack to modify semanage.conf before it gets copied by
# multilib_copy_sources.
if declare -pf multilib_copy_sources >/dev/null 2>/dev/null; then
if ! declare -pf flatcar_hacked_multilib_copy_sources >/dev/null 2>&1; then
eval "$(echo 'flatcar_hacked_multilib_copy_sources()'; declare -pf multilib_copy_sources | tail -n +2)"
fi
multilib_copy_sources() {
# Enable compression in semanage.conf
sed -i \
-e 's/^\(bzip-blocksize\)=0/\1=1/' \
"${S}/src/semanage.conf"
flatcar_hacked_multilib_copy_sources "${@}"
}
fi
if [[ $(flatcar_target) = 'generic-prod' ]]; then
INSTALL_MASK+=" /usr/lib/python* "
fi