summaryrefslogtreecommitdiffstats
path: root/src/mountfsd
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-11-12 19:30:38 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-13 00:21:33 +0100
commite2f82f61510ac8cea86a32d269df346e24c55c3a (patch)
treeedd148a7b06208fe91b92d71fca48ebd8a32b5c4 /src/mountfsd
parentrun0: when changing privileges to non-root, do not show superhero emoji (diff)
downloadsystemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.tar.xz
systemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.zip
various: check meson feature flag early
Prompted by https://github.com/systemd/systemd/pull/35110#discussion_r1835885340
Diffstat (limited to 'src/mountfsd')
-rw-r--r--src/mountfsd/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mountfsd/meson.build b/src/mountfsd/meson.build
index 53fc3d368c..7b31fdc91f 100644
--- a/src/mountfsd/meson.build
+++ b/src/mountfsd/meson.build
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
+if conf.get('ENABLE_MOUNTFSD') != 1
+ subdir_done()
+endif
+
systemd_mountwork_sources = files(
'mountwork.c',
)
@@ -12,12 +16,10 @@ systemd_mountfsd_sources = files(
executables += [
libexec_template + {
'name' : 'systemd-mountfsd',
- 'conditions' : ['ENABLE_MOUNTFSD'],
'sources' : systemd_mountfsd_sources,
},
libexec_template + {
'name' : 'systemd-mountwork',
- 'conditions' : ['ENABLE_MOUNTFSD'],
'sources' : systemd_mountwork_sources,
},
]