Skip to content

Commit 8f0b586

Browse files
committed
overlay coreos/config: Add further Flatcar modifications for sys-apps/policycoreutils
1 parent fa4edb7 commit 8f0b586

File tree

1 file changed

+12
-0
lines changed
  • sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps

1 file changed

+12
-0
lines changed

sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/policycoreutils

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,15 @@ cros_post_src_install_set_up_var_lib_selinux() {
1414
mv "${ED}/var/lib/selinux" "${ED}/usr/lib/selinux/policy"
1515
dosym -r /usr/lib/selinux/policy /var/lib/selinux
1616
}
17+
18+
# Do not install python stuff in prod images.
19+
if [[ $(flatcar_target) = 'generic-prod' ]]; then
20+
INSTALL_MASK+=" /usr/lib/python-exec "
21+
fi
22+
23+
# INSTALL_MASK does not work on symlinks.
24+
cros_post_pkg_postinst_drop_rlpkg_symlink() {
25+
if [[ $(flatcar_target) = 'generic-prod' ]]; then
26+
rm -f "${ROOT}"/usr/sbin/rlpkg
27+
fi
28+
}

0 commit comments

Comments
 (0)