Skip to content

Commit 947305b

Browse files
committed
overlay coreos/config: Try again at rlpkg masking
1 parent 06c0b00 commit 947305b

File tree

1 file changed

+8
-1
lines changed
  • sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,15 @@ cros_post_src_install_set_up_var_lib_selinux() {
1717

1818
# Do not install python stuff in prod images.
1919
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 "
2121
INSTALL_MASK+="${policycoreutils_mask}"
2222
PKG_INSTALL_MASK+="${policycoreutils_mask}"
2323
unset policycoreutils_mask
2424
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+
}

0 commit comments

Comments
 (0)