meson: simplify with_runlevels ternany op usage

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-10-27 10:49:11 +01:00
parent 6706384a89
commit d5816b6138
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ units = [
'multi-user.target.wants/'],
['getty-pre.target', ''],
['graphical.target', '',
(with_runlevels ? 'runlevel5.target default.target' : 'default.target')],
'default.target' + (with_runlevels ? ' runlevel5.target' : '')],
['halt.target', ''],
['hibernate.target', 'ENABLE_HIBERNATE'],
['hybrid-sleep.target', 'ENABLE_HIBERNATE'],
@ -61,7 +61,7 @@ units = [
'sysinit.target.wants/'],
['proc-sys-fs-binfmt_misc.mount', 'ENABLE_BINFMT'],
['reboot.target', '',
(with_runlevels ? 'runlevel6.target ctrl-alt-del.target' : 'ctrl-alt-del.target')],
'ctrl-alt-del.target' + (with_runlevels ? ' runlevel6.target' : '')],
['remote-cryptsetup.target', 'HAVE_LIBCRYPTSETUP'],
['remote-fs-pre.target', ''],
['remote-fs.target', ''],