1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 with_runlevels = conf.get('HAVE_SYSV_COMPAT') == 1
6 { 'file' : 'basic.target' },
7 { 'file' : 'blockdev@.target' },
8 { 'file' : 'bluetooth.target' },
9 { 'file' : 'boot-complete.target' },
10 { 'file' : 'console-getty.service.in' },
11 { 'file' : 'container-getty@.service.in' },
13 'file' : 'cryptsetup-pre.target',
14 'conditions' : ['HAVE_LIBCRYPTSETUP'],
17 'file' : 'cryptsetup.target',
18 'conditions' : ['HAVE_LIBCRYPTSETUP'],
19 'symlinks' : ['sysinit.target.wants/'],
21 { 'file' : 'debug-shell.service.in' },
23 'file' : 'dev-hugepages.mount',
24 'symlinks' : ['sysinit.target.wants/'],
27 'file' : 'dev-mqueue.mount',
28 'symlinks' : ['sysinit.target.wants/'],
30 { 'file' : 'emergency.service.in' },
31 { 'file' : 'emergency.target' },
32 { 'file' : 'exit.target' },
33 { 'file' : 'factory-reset.target' },
34 { 'file' : 'final.target' },
35 { 'file' : 'first-boot-complete.target' },
36 { 'file' : 'getty-pre.target' },
38 'file' : 'getty.target',
39 'symlinks' : ['multi-user.target.wants/'],
42 'file' : 'getty@.service.in',
43 'symlinks' : ['autovt@.service'],
46 'file' : 'graphical.target',
47 'symlinks' : ['default.target'] + (with_runlevels ? ['runlevel5.target'] : []),
49 { 'file' : 'halt.target' },
51 'file' : 'hibernate.target',
52 'conditions' : ['ENABLE_HIBERNATE'],
55 'file' : 'hybrid-sleep.target',
56 'conditions' : ['ENABLE_HIBERNATE'],
59 'file' : 'systemd-battery-check.service.in',
60 'conditions' : ['ENABLE_INITRD'],
61 'symlinks' : ['initrd.target.wants/'],
64 'file' : 'systemd-bsod.service.in',
65 'conditions' : ['HAVE_QRENCODE', 'ENABLE_INITRD'],
66 'symlinks' : ['initrd.target.wants/'],
69 'file' : 'initrd-cleanup.service',
70 'conditions' : ['ENABLE_INITRD'],
73 'file' : 'initrd-fs.target',
74 'conditions' : ['ENABLE_INITRD'],
77 'file' : 'initrd-parse-etc.service.in',
78 'conditions' : ['ENABLE_INITRD'],
81 'file' : 'initrd-root-device.target',
82 'conditions' : ['ENABLE_INITRD'],
85 'file' : 'initrd-root-fs.target',
86 'conditions' : ['ENABLE_INITRD'],
89 'file' : 'initrd-switch-root.service',
90 'conditions' : ['ENABLE_INITRD'],
93 'file' : 'initrd-switch-root.target',
94 'conditions' : ['ENABLE_INITRD'],
97 'file' : 'initrd-udevadm-cleanup-db.service',
98 'conditions' : ['ENABLE_INITRD'],
101 'file' : 'initrd-usr-fs.target',
102 'conditions' : ['ENABLE_INITRD'],
105 'file' : 'initrd.target',
106 'conditions' : ['ENABLE_INITRD'],
109 'file' : 'integritysetup-pre.target',
110 'conditions' : ['HAVE_LIBCRYPTSETUP'],
113 'file' : 'integritysetup.target',
114 'conditions' : ['HAVE_LIBCRYPTSETUP'],
115 'symlinks' : ['sysinit.target.wants/'],
117 { 'file' : 'kexec.target' },
119 'file' : 'kmod-static-nodes.service.in',
120 'conditions' : ['HAVE_KMOD', 'ENABLE_TMPFILES'],
121 'symlinks' : ['sysinit.target.wants/'],
124 'file' : 'ldconfig.service',
125 'conditions' : ['ENABLE_LDCONFIG'],
126 'symlinks' : ['sysinit.target.wants/'],
128 { 'file' : 'local-fs-pre.target' },
129 { 'file' : 'local-fs.target' },
131 'file' : 'machine.slice',
132 'conditions' : ['ENABLE_MACHINED'],
135 'file' : 'machines.target',
136 'conditions' : ['ENABLE_MACHINED'],
138 { 'file' : 'modprobe@.service' },
140 'file' : 'multi-user.target',
141 'symlinks' : with_runlevels ? ['runlevel2.target', 'runlevel3.target', 'runlevel4.target'] : [],
143 { 'file' : 'network-online.target' },
144 { 'file' : 'network-pre.target' },
145 { 'file' : 'network.target' },
146 { 'file' : 'nss-lookup.target' },
147 { 'file' : 'nss-user-lookup.target' },
148 { 'file' : 'paths.target' },
150 'file' : 'poweroff.target',
151 'symlinks' : with_runlevels ? ['runlevel0.target'] : [],
153 { 'file' : 'printer.target' },
155 'file' : 'proc-sys-fs-binfmt_misc.automount',
156 'conditions' : ['ENABLE_BINFMT'],
157 'symlinks' : ['sysinit.target.wants/'],
160 'file' : 'proc-sys-fs-binfmt_misc.mount',
161 'conditions' : ['ENABLE_BINFMT'],
164 'file' : 'quotaon.service.in',
165 'conditions' : ['ENABLE_QUOTACHECK'],
168 'file' : 'rc-local.service.in',
169 'conditions' : ['HAVE_SYSV_COMPAT'],
172 'file' : 'reboot.target',
173 'symlinks' : ['ctrl-alt-del.target'] + (with_runlevels ? ['runlevel6.target'] : []),
176 'file' : 'remote-cryptsetup.target',
177 'conditions' : ['HAVE_LIBCRYPTSETUP'],
178 'symlinks' : ['initrd-root-device.target.wants/'],
180 { 'file' : 'remote-fs-pre.target' },
181 { 'file' : 'remote-fs.target' },
183 'file' : 'remote-veritysetup.target',
184 'conditions' : ['HAVE_LIBCRYPTSETUP'],
185 'symlinks' : ['initrd-root-device.target.wants/'],
187 { 'file' : 'rescue.service.in' },
189 'file' : 'rescue.target',
190 'symlinks' : with_runlevels ? ['runlevel1.target'] : [],
192 { 'file' : 'rpcbind.target' },
193 { 'file' : 'serial-getty@.service.in' },
194 { 'file' : 'shutdown.target' },
195 { 'file' : 'sigpwr.target' },
196 { 'file' : 'sleep.target' },
197 { 'file' : 'slices.target' },
198 { 'file' : 'smartcard.target' },
199 { 'file' : 'sockets.target' },
200 { 'file' : 'soft-reboot.target' },
201 { 'file' : 'sound.target' },
203 'file' : 'suspend-then-hibernate.target',
204 'conditions' : ['ENABLE_HIBERNATE'],
206 { 'file' : 'suspend.target' },
207 { 'file' : 'swap.target' },
209 'file' : 'sys-fs-fuse-connections.mount',
210 'symlinks' : ['sysinit.target.wants/'],
213 'file' : 'sys-kernel-config.mount',
214 'symlinks' : ['sysinit.target.wants/'],
217 'file' : 'sys-kernel-debug.mount',
218 'symlinks' : ['sysinit.target.wants/'],
221 'file' : 'sys-kernel-tracing.mount',
222 'symlinks' : ['sysinit.target.wants/'],
224 { 'file' : 'sysinit.target' },
225 { 'file' : 'syslog.socket' },
227 'file' : 'system-systemd\\x2dcryptsetup.slice',
228 'conditions' : ['HAVE_LIBCRYPTSETUP'],
231 'file' : 'system-systemd\\x2dveritysetup.slice',
232 'conditions' : ['HAVE_LIBCRYPTSETUP'],
234 { 'file' : 'system-update-cleanup.service' },
235 { 'file' : 'system-update-pre.target' },
236 { 'file' : 'system-update.target' },
238 'file' : 'systemd-ask-password-console.path',
239 'symlinks' : ['sysinit.target.wants/'],
241 { 'file' : 'systemd-ask-password-console.service' },
243 'file' : 'systemd-ask-password-wall.path',
244 'symlinks' : ['multi-user.target.wants/'],
246 { 'file' : 'systemd-ask-password-wall.service' },
248 'file' : 'systemd-backlight@.service.in',
249 'conditions' : ['ENABLE_BACKLIGHT'],
252 'file' : 'systemd-binfmt.service.in',
253 'conditions' : ['ENABLE_BINFMT'],
254 'symlinks' : ['sysinit.target.wants/'],
257 'file' : 'systemd-bless-boot.service.in',
258 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_BLKID'],
260 { 'file' : 'systemd-boot-check-no-failures.service.in' },
262 'file' : 'systemd-boot-random-seed.service',
263 'conditions' : ['ENABLE_BOOTLOADER'],
264 'symlinks' : ['sysinit.target.wants/'],
267 'file' : 'systemd-boot-update.service',
268 'conditions' : ['ENABLE_BOOTLOADER'],
271 'file' : 'systemd-confext.service',
272 'conditions' : ['ENABLE_SYSEXT'],
275 'file' : 'systemd-coredump.socket',
276 'conditions' : ['ENABLE_COREDUMP'],
277 'symlinks' : ['sockets.target.wants/'],
280 'file' : 'systemd-coredump@.service.in',
281 'conditions' : ['ENABLE_COREDUMP'],
284 'file' : 'systemd-creds.socket',
285 'symlinks' : ['sockets.target.wants/'],
287 { 'file' : 'systemd-creds@.service' },
288 { 'file' : 'systemd-exit.service' },
290 'file' : 'systemd-firstboot.service',
291 'conditions' : ['ENABLE_FIRSTBOOT'],
292 'symlinks' : ['sysinit.target.wants/'],
294 { 'file' : 'systemd-fsck-root.service.in' },
295 { 'file' : 'systemd-fsck@.service.in' },
296 { 'file' : 'systemd-growfs-root.service.in' },
297 { 'file' : 'systemd-growfs@.service.in' },
298 { 'file' : 'systemd-halt.service' },
300 'file' : 'systemd-hibernate-resume.service.in',
301 'conditions' : ['ENABLE_HIBERNATE'],
304 'file' : 'systemd-hibernate.service.in',
305 'conditions' : ['ENABLE_HIBERNATE'],
308 'file' : 'systemd-homed-activate.service',
309 'conditions' : ['ENABLE_HOMED'],
312 'file' : 'systemd-homed-firstboot.service',
313 'conditions' : ['ENABLE_HOMED'],
316 'file' : 'systemd-homed.service.in',
317 'conditions' : ['ENABLE_HOMED'],
320 'file' : 'systemd-hostnamed.service.in',
321 'conditions' : ['ENABLE_HOSTNAMED'],
322 'symlinks' : ['dbus-org.freedesktop.hostname1.service'],
325 'file' : 'systemd-hostnamed.socket',
326 'conditions' : ['ENABLE_HOSTNAMED'],
327 'symlinks' : ['sockets.target.wants/'],
330 'file' : 'systemd-hwdb-update.service.in',
331 'conditions' : ['ENABLE_HWDB'],
332 'symlinks' : ['sysinit.target.wants/'],
335 'file' : 'systemd-hybrid-sleep.service.in',
336 'conditions' : ['ENABLE_HIBERNATE'],
339 'file' : 'systemd-importd.service.in',
340 'conditions' : ['ENABLE_IMPORTD'],
341 'symlinks' : ['dbus-org.freedesktop.import1.service'],
344 'file' : 'systemd-initctl.service.in',
345 'conditions' : ['HAVE_SYSV_COMPAT'],
348 'file' : 'systemd-initctl.socket',
349 'conditions' : ['HAVE_SYSV_COMPAT'],
350 'symlinks' : ['sockets.target.wants/'],
353 'file' : 'systemd-journal-catalog-update.service',
354 'symlinks' : ['sysinit.target.wants/'],
357 'file' : 'systemd-journal-flush.service',
358 'symlinks' : ['sysinit.target.wants/'],
361 'file' : 'systemd-journal-gatewayd.service.in',
362 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
365 'file' : 'systemd-journal-gatewayd.socket',
366 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
369 'file' : 'systemd-journal-remote.service.in',
370 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
373 'file' : 'systemd-journal-remote.socket',
374 'conditions' : ['ENABLE_REMOTE', 'HAVE_MICROHTTPD'],
377 'file' : 'systemd-journal-upload.service.in',
378 'conditions' : ['ENABLE_REMOTE', 'HAVE_LIBCURL'],
380 { 'file' : 'systemd-journald-audit.socket' },
382 'file' : 'systemd-journald-dev-log.socket',
383 'symlinks' : ['sockets.target.wants/'],
385 { 'file' : 'systemd-journald-varlink@.socket' },
387 'file' : 'systemd-journald.service.in',
388 'symlinks' : ['sysinit.target.wants/'],
391 'file' : 'systemd-journald.socket',
392 'symlinks' : ['sockets.target.wants/'],
394 { 'file' : 'systemd-journald@.service.in' },
395 { 'file' : 'systemd-journald@.socket' },
396 { 'file' : 'systemd-kexec.service' },
398 'file' : 'systemd-localed.service.in',
399 'conditions' : ['ENABLE_LOCALED'],
400 'symlinks' : ['dbus-org.freedesktop.locale1.service'],
403 'file' : 'systemd-logind.service.in',
404 'conditions' : ['ENABLE_LOGIND'],
405 'symlinks' : ['multi-user.target.wants/', 'dbus-org.freedesktop.login1.service'],
408 'file' : 'systemd-machine-id-commit.service',
409 'symlinks' : ['sysinit.target.wants/'],
412 'file' : 'systemd-machined.service.in',
413 'conditions' : ['ENABLE_MACHINED'],
414 'symlinks' : ['dbus-org.freedesktop.machine1.service'],
417 'file' : 'systemd-modules-load.service.in',
418 'conditions' : ['HAVE_KMOD'],
419 'symlinks' : ['sysinit.target.wants/'],
421 { 'file' : 'systemd-network-generator.service.in' },
423 'file' : 'systemd-networkd-wait-online.service.in',
424 'conditions' : ['ENABLE_NETWORKD'],
427 'file' : 'systemd-networkd-wait-online@.service.in',
428 'conditions' : ['ENABLE_NETWORKD'],
431 'file' : 'systemd-networkd.service.in',
432 'conditions' : ['ENABLE_NETWORKD'],
435 'file' : 'systemd-networkd.socket',
436 'conditions' : ['ENABLE_NETWORKD'],
438 { 'file' : 'systemd-nspawn@.service.in' },
440 'file' : 'systemd-vmspawn@.service.in',
441 'conditions' : ['ENABLE_VMSPAWN'],
444 'file' : 'systemd-oomd.service.in',
445 'conditions' : ['ENABLE_OOMD'],
448 'file' : 'systemd-oomd.socket',
449 'conditions' : ['ENABLE_OOMD'],
452 'file' : 'systemd-pcrextend@.service.in',
453 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
456 'file' : 'systemd-pcrextend.socket',
457 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
458 'symlinks' : ['sockets.target.wants/'],
461 'file' : 'systemd-pcrfs-root.service.in',
462 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
465 'file' : 'systemd-pcrfs@.service.in',
466 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
469 'file' : 'systemd-pcrmachine.service.in',
470 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
471 'symlinks' : ['sysinit.target.wants/'],
474 'file' : 'systemd-pcrphase-initrd.service.in',
475 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2', 'ENABLE_INITRD'],
476 'symlinks' : ['initrd.target.wants/'],
479 'file' : 'systemd-pcrphase-sysinit.service.in',
480 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
481 'symlinks' : ['sysinit.target.wants/'],
484 'file' : 'systemd-pcrphase.service.in',
485 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
486 'symlinks' : ['sysinit.target.wants/'],
489 'file' : 'systemd-tpm2-setup.service.in',
490 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
491 'symlinks' : ['sysinit.target.wants/'],
494 'file' : 'systemd-tpm2-setup-early.service.in',
495 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
496 'symlinks' : ['sysinit.target.wants/'],
499 'file' : 'systemd-pcrlock-make-policy.service.in',
500 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
503 'file' : 'systemd-pcrlock-secureboot-policy.service.in',
504 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
507 'file' : 'systemd-pcrlock-secureboot-authority.service.in',
508 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
511 'file' : 'systemd-pcrlock-file-system.service.in',
512 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
515 'file' : 'systemd-pcrlock-machine-id.service.in',
516 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
519 'file' : 'systemd-pcrlock-firmware-code.service.in',
520 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
523 'file' : 'systemd-pcrlock-firmware-config.service.in',
524 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
527 'file' : 'systemd-pcrlock@.service.in',
528 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
531 'file' : 'systemd-pcrlock.socket',
532 'conditions' : ['ENABLE_BOOTLOADER', 'HAVE_OPENSSL', 'HAVE_TPM2'],
533 'symlinks' : ['sockets.target.wants/'],
536 'file' : 'systemd-portabled.service.in',
537 'conditions' : ['ENABLE_PORTABLED'],
538 'symlinks' : ['dbus-org.freedesktop.portable1.service'],
540 { 'file' : 'systemd-poweroff.service' },
542 'file' : 'systemd-pstore.service.in',
543 'conditions' : ['ENABLE_PSTORE'],
546 'file' : 'systemd-quotacheck.service.in',
547 'conditions' : ['ENABLE_QUOTACHECK'],
550 'file' : 'systemd-random-seed.service.in',
551 'conditions' : ['ENABLE_RANDOMSEED'],
552 'symlinks' : ['sysinit.target.wants/'],
554 { 'file' : 'systemd-reboot.service' },
555 { 'file' : 'systemd-remount-fs.service.in' },
557 'file' : 'systemd-repart.service.in',
558 'conditions' : ['ENABLE_REPART'],
559 'symlinks' : ['sysinit.target.wants/', 'initrd-root-fs.target.wants/'],
562 'file' : 'systemd-resolved.service.in',
563 'conditions' : ['ENABLE_RESOLVE'],
566 'file' : 'systemd-rfkill.service.in',
567 'conditions' : ['ENABLE_RFKILL'],
570 'file' : 'systemd-rfkill.socket',
571 'conditions' : ['ENABLE_RFKILL'],
573 { 'file' : 'systemd-soft-reboot.service' },
575 'file' : 'systemd-suspend-then-hibernate.service.in',
576 'conditions' : ['ENABLE_HIBERNATE'],
578 { 'file' : 'systemd-suspend.service.in' },
580 'file' : 'systemd-sysctl.service.in',
581 'symlinks' : ['sysinit.target.wants/'],
584 'file' : 'systemd-sysext.service',
585 'conditions' : ['ENABLE_SYSEXT'],
588 'file' : 'systemd-sysext.socket',
589 'conditions' : ['ENABLE_SYSEXT'],
590 'symlinks' : ['sockets.target.wants/'],
593 'file' : 'systemd-sysext@.service',
594 'conditions' : ['ENABLE_SYSEXT'],
597 'file' : 'systemd-sysupdate-reboot.service.in',
598 'conditions' : ['ENABLE_SYSUPDATE'],
601 'file' : 'systemd-sysupdate-reboot.timer',
602 'conditions' : ['ENABLE_SYSUPDATE'],
605 'file' : 'systemd-sysupdate.service.in',
606 'conditions' : ['ENABLE_SYSUPDATE'],
609 'file' : 'systemd-sysupdate.timer',
610 'conditions' : ['ENABLE_SYSUPDATE'],
613 'file' : 'systemd-sysusers.service',
614 'conditions' : ['ENABLE_SYSUSERS'],
615 'symlinks' : ['sysinit.target.wants/'],
618 'file' : 'systemd-storagetm.service.in',
619 'conditions' : ['ENABLE_STORAGETM'],
622 'file' : 'storage-target-mode.target',
623 'conditions' : ['ENABLE_STORAGETM'],
626 'file' : 'systemd-time-wait-sync.service.in',
627 'conditions' : ['ENABLE_TIMESYNCD'],
630 'file' : 'systemd-timedated.service.in',
631 'conditions' : ['ENABLE_TIMEDATED'],
632 'symlinks' : ['dbus-org.freedesktop.timedate1.service'],
635 'file' : 'systemd-timesyncd.service.in',
636 'conditions' : ['ENABLE_TIMESYNCD'],
639 'file' : 'systemd-tmpfiles-clean.service',
640 'conditions' : ['ENABLE_TMPFILES'],
643 'file' : 'systemd-tmpfiles-clean.timer',
644 'conditions' : ['ENABLE_TMPFILES'],
645 'symlinks' : ['timers.target.wants/'],
648 'file' : 'systemd-tmpfiles-setup-dev-early.service',
649 'conditions' : ['ENABLE_TMPFILES'],
650 'symlinks' : ['sysinit.target.wants/'],
653 'file' : 'systemd-tmpfiles-setup-dev.service',
654 'conditions' : ['ENABLE_TMPFILES'],
655 'symlinks' : ['sysinit.target.wants/'],
658 'file' : 'systemd-tmpfiles-setup.service',
659 'conditions' : ['ENABLE_TMPFILES'],
660 'symlinks' : ['sysinit.target.wants/'],
662 { 'file' : 'systemd-udev-settle.service' },
664 'file' : 'systemd-udev-trigger.service',
665 'symlinks' : ['sysinit.target.wants/'],
668 'file' : 'systemd-udevd-control.socket',
669 'symlinks' : ['sockets.target.wants/'],
672 'file' : 'systemd-udevd-kernel.socket',
673 'symlinks' : ['sockets.target.wants/'],
676 'file' : 'systemd-udevd.service.in',
677 'symlinks' : ['sysinit.target.wants/'],
680 'file' : 'systemd-update-done.service.in',
681 'symlinks' : ['sysinit.target.wants/'],
684 'file' : 'systemd-update-utmp-runlevel.service.in',
685 'conditions' : ['ENABLE_UTMP', 'HAVE_SYSV_COMPAT'],
686 'symlinks' : ['multi-user.target.wants/', 'graphical.target.wants/', 'rescue.target.wants/'],
689 'file' : 'systemd-update-utmp.service.in',
690 'conditions' : ['ENABLE_UTMP'],
691 'symlinks' : ['sysinit.target.wants/'],
694 'file' : 'systemd-user-sessions.service.in',
695 'conditions' : ['HAVE_PAM'],
696 'symlinks' : ['multi-user.target.wants/'],
699 'file' : 'systemd-userdbd.service.in',
700 'conditions' : ['ENABLE_USERDB'],
703 'file' : 'systemd-userdbd.socket',
704 'conditions' : ['ENABLE_USERDB'],
707 'file' : 'systemd-vconsole-setup.service.in',
708 'conditions' : ['ENABLE_VCONSOLE'],
711 'file' : 'systemd-volatile-root.service.in',
712 'conditions' : ['ENABLE_INITRD'],
714 { 'file' : 'time-set.target' },
715 { 'file' : 'time-sync.target' },
716 { 'file' : 'timers.target' },
718 'file' : 'tmp.mount',
719 'symlinks' : ['local-fs.target.wants/'],
721 { 'file' : 'tpm2.target' },
722 { 'file' : 'umount.target' },
723 { 'file' : 'usb-gadget.target' },
724 { 'file' : 'user-runtime-dir@.service.in' },
725 { 'file' : 'user.slice' },
726 { 'file' : 'user@.service.in' },
728 'file' : 'var-lib-machines.mount',
729 'conditions' : ['ENABLE_MACHINED'],
730 'symlinks' : ['remote-fs.target.wants/', 'machines.target.wants/'],
733 'file' : 'veritysetup-pre.target',
734 'conditions' : ['HAVE_LIBCRYPTSETUP'],
737 'file' : 'veritysetup.target',
738 'conditions' : ['HAVE_LIBCRYPTSETUP'],
739 'symlinks' : ['sysinit.target.wants/'],
744 source = unit.get('file')
746 if source.endswith('.in')
748 name = source.substring(0, -3)
749 assert(name + '.in' == source)
754 source = files(source)
757 foreach cond : unit.get('conditions', [])
758 if conf.get(cond) != 1
769 command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'],
771 install_dir : systemunitdir)
774 install_dir : systemunitdir)
778 foreach target : unit.get('symlinks', [])
779 if target.endswith('/')
780 install_emptydir(systemunitdir / target)
781 meson.add_install_script(sh, '-c',
782 ln_s.format(systemunitdir / name,
783 systemunitdir / target / name))
785 meson.add_install_script(sh, '-c',
786 ln_s.format(systemunitdir / name,
787 systemunitdir / target))
793 install_data('user-.slice.d/10-defaults.conf',
794 install_dir : systemunitdir + '/user-.slice.d')
796 install_data('user@.service.d/10-login-barrier.conf',
797 install_dir : systemunitdir + '/user@.service.d')
798 install_data('user@0.service.d/10-login-barrier.conf',
799 install_dir : systemunitdir + '/user@0.service.d')
801 ############################################################
803 install_emptydir(dbussessionservicedir)
804 meson.add_install_script(sh, '-c',
805 ln_s.format(dbussystemservicedir / 'org.freedesktop.systemd1.service',
806 dbussessionservicedir / 'org.freedesktop.systemd1.service'))
808 if conf.get('HAVE_SYSV_COMPAT') == 1
809 foreach i : [1, 2, 3, 4, 5]
810 install_emptydir(systemunitdir / 'runlevel@0@.target.wants'.format(i))