mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-15 10:31:15 +02:00
overlay coreos/config: Add further Flatcar modifications for sys-apps/policycoreutils
Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
764f4ede10
commit
d1997dbc08
@ -18,3 +18,15 @@ cros_post_src_install_set_up_var_lib_selinux() {
|
||||
cros_post_src_install_vendorize_pam() {
|
||||
vendorize_pam_files
|
||||
}
|
||||
|
||||
# Do not install python stuff in prod images.
|
||||
if [[ $(flatcar_target) = 'generic-prod' ]]; then
|
||||
INSTALL_MASK+=" /usr/lib/python-exec "
|
||||
fi
|
||||
|
||||
# INSTALL_MASK does not work on symlinks.
|
||||
cros_post_pkg_postinst_drop_rlpkg_symlink() {
|
||||
if [[ $(flatcar_target) = 'generic-prod' ]]; then
|
||||
rm -f "${ROOT}"/usr/sbin/rlpkg
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user