summaryrefslogtreecommitdiff
path: root/units/meson.build
diff options
context:
space:
mode:
authorFelipe Sateler <fsateler@gmail.com>2017-06-21 16:04:38 -0400
committerFelipe Sateler <fsateler@gmail.com>2017-06-21 16:19:20 -0400
commit78d1039d6b891c41ff68cdaa2bc9e9796e8d14c3 (patch)
tree5a0ec41bd78832f503a3b42b37dd7d9e34483b37 /units/meson.build
parentbe5bd2ec62dd7cedd56da82296b9296918806b48 (diff)
downloadsystemd-78d1039d6b891c41ff68cdaa2bc9e9796e8d14c3.tar.gz
nspawn: hook var-lib-machines.mount to machines.target and remote-fs.target
/var can be on a remote filesystem, thus hooking it to local-fs.target is not correct. Also, only install the mount unit when machined is enabled, because machined is the one managing the underlying device, and thus makes no sense without machined. Fixes #1175
Diffstat (limited to 'units/meson.build')
-rw-r--r--units/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/units/meson.build b/units/meson.build
index 6fb1fa29c9..e94add6a6f 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -101,8 +101,8 @@ units = [
['timers.target', ''],
['umount.target', ''],
['user.slice', ''],
- ['var-lib-machines.mount', '',
- 'local-fs.target.wants/'],
+ ['var-lib-machines.mount', 'ENABLE_MACHINED',
+ 'remote-fs.target.wants/ machines.target.wants/'],
]
in_units = [