mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-15 18:41:28 +02:00
overlay coreos/config: Add Flatcar modifications for sys-libs/libsemanage
Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
08870146fd
commit
01c453103b
17
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/libsemanage
vendored
Normal file
17
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/libsemanage
vendored
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user