systemd: make xdg optional

Make xdg optional to avoid a potential build error.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
Yi Zhao 2021-09-29 11:08:49 +08:00
parent 6cacc4871a
commit 75492f95f7
1 changed files with 8 additions and 2 deletions

View File

@ -313,10 +313,16 @@ init_unit_file(systemd_user_manager_unit_t)
type systemd_conf_home_t;
init_unit_file(systemd_conf_home_t)
xdg_config_content(systemd_conf_home_t)
optional_policy(`
xdg_config_content(systemd_conf_home_t)
')
type systemd_data_home_t;
xdg_data_content(systemd_data_home_t)
userdom_user_home_content(systemd_data_home_t)
optional_policy(`
xdg_data_content(systemd_data_home_t)
')
type systemd_user_runtime_notify_t;
userdom_user_runtime_content(systemd_user_runtime_notify_t)