File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,15 @@ cros_post_src_install_set_up_var_lib_selinux() {
17
17
18
18
# Do not install python stuff in prod images.
19
19
if [[ ${FLATCAR_TYPE} = 'generic' && ${FLATCAR_SUBTYPE} = 'prod' ]]; then
20
- policycoreutils_mask=" /usr/lib/python-exec /usr/sbin/rlpkg /usr/bin/rlpkg "
20
+ policycoreutils_mask=" /usr/lib/python-exec "
21
21
INSTALL_MASK+="${policycoreutils_mask}"
22
22
PKG_INSTALL_MASK+="${policycoreutils_mask}"
23
23
unset policycoreutils_mask
24
24
fi
25
+
26
+ # INSTALL_MASK does not work on symlinks.
27
+ cros_post_pkg_postinst_drop_rlpkg_symlink() {
28
+ if [[ ${FLATCAR_TYPE} = 'generic' && ${FLATCAR_SUBTYPE} = 'prod' ]]; then
29
+ rm -f "${ROOT}"/usr/sbin/rlpkg
30
+ fi
31
+ }
You can’t perform that action at this time.
0 commit comments