Skip to content

Commit 7d8eb61

Browse files
committed
overlay coreos/config: Add Flatcar modifications for sys-libs/libsemanage
1 parent 67e730f commit 7d8eb61

File tree

1 file changed

+20
-0
lines changed
  • sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# A hack to modify semanage.conf before it gets copied by
2+
# multilib_copy_sources.
3+
if declare -pf multilib_copy_sources >/dev/null 2>/dev/null; then
4+
if ! declare -pf flatcar_hacked_multilib_copy_sources >/dev/null 2>&1; then
5+
eval "$(echo 'flatcar_hacked_multilib_copy_sources()'; declare -pf multilib_copy_sources | tail -n +2)"
6+
fi
7+
multilib_copy_sources() {
8+
# Enable compression in semanage.conf
9+
sed -i \
10+
-e 's/^\(bzip-blocksize\)=0/\1=1/' \
11+
"${S}/src/semanage.conf"
12+
flatcar_hacked_multilib_copy_sources "${@}"
13+
}
14+
fi
15+
if [[ ${FLATCAR_TYPE} = 'generic' && ${FLATCAR_SUBTYPE} = 'prod' ]]; then
16+
libsemanage_mask=" /usr/lib/python* "
17+
INSTALL_MASK+="${libsemanage_mask}"
18+
PKG_INSTALL_MASK+="${libsemanage_mask}"
19+
unset libsemanage_mask
20+
fi

0 commit comments

Comments
 (0)