From: Yu Watanabe Date: Sun, 23 Nov 2025 02:51:01 +0000 (+0900) Subject: factory: do not install nsswitch.conf when nss is disabled X-Git-Tag: v259-rc2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27971114d5ba8168dbb96011a1840416ba69282a;p=thirdparty%2Fsystemd.git 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. --- diff --git a/factory/templates/meson.build b/factory/templates/meson.build index 3db9f255b98..0f53217a483 100644 --- a/factory/templates/meson.build +++ b/factory/templates/meson.build @@ -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 diff --git a/factory/etc/nsswitch.conf b/factory/templates/nsswitch.conf similarity index 100% rename from factory/etc/nsswitch.conf rename to factory/templates/nsswitch.conf