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 authored and Daan De Meyer committed 2025-11-25 10:48:31 +01:00
1 parent 3a5d9ee980
commit 27971114d5
2 files changed
+6

No files matched your search

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