From 27971114d5ba8168dbb96011a1840416ba69282a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 23 Nov 2025 11:51:01 +0900 Subject: [PATCH] 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. --- factory/templates/meson.build | 6 ++++++ factory/{etc => templates}/nsswitch.conf | 0 2 files changed, 6 insertions(+) rename factory/{etc => templates}/nsswitch.conf (100%) diff --git a/factory/templates/meson.build b/factory/templates/meson.build index 3db9f255b9..0f53217a48 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