File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments