factory: do not install nsswitch.conf when nss is disabled

When systemd is built with musl, nss modules are not supported,
hence the file is not necessary. Let's not install the file.
This commit is contained in:
Yu Watanabe
2025-11-23 11:51:01 +09:00
committed by Daan De Meyer
parent 3a5d9ee980
commit 27971114d5
2 changed files with 6 additions and 0 deletions

View File

@@ -15,3 +15,9 @@ custom_target(
command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
install : true, install : true,
install_dir : factory_etc_dir) install_dir : factory_etc_dir)
if conf.get('ENABLE_NSS') == 1
install_data(
'nsswitch.conf',
install_dir : factory_etc_dir)
endif