portage: really make consoletype module optional

All callers of consoletype_exec() put it in an optional_policy() block
but portage. This makes consoletype module mandatory when module portage
is loaded, even when consoletype is not installed.

Fix this issue by introducing an optional_policy() block.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2019-09-04 22:13:41 +02:00
parent 51c4812c23
commit 3edba7f505
No known key found for this signature in database
GPG Key ID: C191415F340DAAA0
1 changed files with 4 additions and 2 deletions

View File

@ -130,8 +130,6 @@ miscfiles_read_localization(gcc_config_t)
userdom_use_user_terminals(gcc_config_t)
consoletype_exec(gcc_config_t)
ifdef(`distro_gentoo',`
init_exec_rc(gcc_config_t)
')
@ -140,6 +138,10 @@ tunable_policy(`portage_use_nfs',`
fs_read_nfs_files(gcc_config_t)
')
optional_policy(`
consoletype_exec(gcc_config_t)
')
optional_policy(`
seutil_use_newrole_fds(gcc_config_t)
')