mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
dont install systemd-initctl, runlevel, telinit if no SYSV compat
systemd-initctl executable is still built.
This commit is contained in:
parent
a53a85b35e
commit
6589a56972
@ -2189,7 +2189,8 @@ if conf.get('ENABLE_HOMED') == 1
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
foreach alias : ['halt', 'poweroff', 'reboot', 'runlevel', 'shutdown', 'telinit']
|
foreach alias : (['halt', 'poweroff', 'reboot', 'shutdown'] +
|
||||||
|
(conf.get('HAVE_SYSV_COMPAT') == 1 ? ['runlevel', 'telinit'] : []))
|
||||||
meson.add_install_script(meson_make_symlink,
|
meson.add_install_script(meson_make_symlink,
|
||||||
join_paths(rootbindir, 'systemctl'),
|
join_paths(rootbindir, 'systemctl'),
|
||||||
join_paths(rootsbindir, alias))
|
join_paths(rootsbindir, alias))
|
||||||
@ -2851,7 +2852,7 @@ executable(
|
|||||||
include_directories : includes,
|
include_directories : includes,
|
||||||
link_with : [libshared],
|
link_with : [libshared],
|
||||||
install_rpath : rootlibexecdir,
|
install_rpath : rootlibexecdir,
|
||||||
install : true,
|
install : (conf.get('HAVE_SYSV_COMPAT') == 1),
|
||||||
install_dir : rootlibexecdir)
|
install_dir : rootlibexecdir)
|
||||||
|
|
||||||
public_programs += executable(
|
public_programs += executable(
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# SPDX-License-Identifier: LGPL-2.1+
|
# SPDX-License-Identifier: LGPL-2.1+
|
||||||
|
|
||||||
|
with_runlevels = conf.get('HAVE_SYSV_COMPAT') == 1
|
||||||
|
|
||||||
units = [
|
units = [
|
||||||
['basic.target', ''],
|
['basic.target', ''],
|
||||||
['blockdev@.target', ''],
|
['blockdev@.target', ''],
|
||||||
@ -19,7 +21,7 @@ units = [
|
|||||||
'multi-user.target.wants/'],
|
'multi-user.target.wants/'],
|
||||||
['getty-pre.target', ''],
|
['getty-pre.target', ''],
|
||||||
['graphical.target', '',
|
['graphical.target', '',
|
||||||
'runlevel5.target default.target'],
|
(with_runlevels ? 'runlevel5.target default.target' : 'default.target')],
|
||||||
['halt.target', ''],
|
['halt.target', ''],
|
||||||
['hibernate.target', 'ENABLE_HIBERNATE'],
|
['hibernate.target', 'ENABLE_HIBERNATE'],
|
||||||
['hybrid-sleep.target', 'ENABLE_HIBERNATE'],
|
['hybrid-sleep.target', 'ENABLE_HIBERNATE'],
|
||||||
@ -42,7 +44,7 @@ units = [
|
|||||||
['machines.target', 'ENABLE_MACHINED'],
|
['machines.target', 'ENABLE_MACHINED'],
|
||||||
['modprobe@.service', ''],
|
['modprobe@.service', ''],
|
||||||
['multi-user.target', '',
|
['multi-user.target', '',
|
||||||
'runlevel2.target runlevel3.target runlevel4.target'],
|
(with_runlevels ? 'runlevel2.target runlevel3.target runlevel4.target' : '')],
|
||||||
['network-online.target', ''],
|
['network-online.target', ''],
|
||||||
['network-pre.target', ''],
|
['network-pre.target', ''],
|
||||||
['network.target', ''],
|
['network.target', ''],
|
||||||
@ -50,18 +52,18 @@ units = [
|
|||||||
['nss-user-lookup.target', ''],
|
['nss-user-lookup.target', ''],
|
||||||
['paths.target', ''],
|
['paths.target', ''],
|
||||||
['poweroff.target', '',
|
['poweroff.target', '',
|
||||||
'runlevel0.target'],
|
(with_runlevels ? 'runlevel0.target' : '')],
|
||||||
['printer.target', ''],
|
['printer.target', ''],
|
||||||
['proc-sys-fs-binfmt_misc.automount', 'ENABLE_BINFMT',
|
['proc-sys-fs-binfmt_misc.automount', 'ENABLE_BINFMT',
|
||||||
'sysinit.target.wants/'],
|
'sysinit.target.wants/'],
|
||||||
['proc-sys-fs-binfmt_misc.mount', 'ENABLE_BINFMT'],
|
['proc-sys-fs-binfmt_misc.mount', 'ENABLE_BINFMT'],
|
||||||
['reboot.target', '',
|
['reboot.target', '',
|
||||||
'runlevel6.target ctrl-alt-del.target'],
|
(with_runlevels ? 'runlevel6.target ctrl-alt-del.target' : 'ctrl-alt-del.target')],
|
||||||
['remote-cryptsetup.target', 'HAVE_LIBCRYPTSETUP'],
|
['remote-cryptsetup.target', 'HAVE_LIBCRYPTSETUP'],
|
||||||
['remote-fs-pre.target', ''],
|
['remote-fs-pre.target', ''],
|
||||||
['remote-fs.target', ''],
|
['remote-fs.target', ''],
|
||||||
['rescue.target', '',
|
['rescue.target', '',
|
||||||
'runlevel1.target'],
|
(with_runlevels ? 'runlevel1.target' : '')],
|
||||||
['rpcbind.target', ''],
|
['rpcbind.target', ''],
|
||||||
['shutdown.target', ''],
|
['shutdown.target', ''],
|
||||||
['sigpwr.target', ''],
|
['sigpwr.target', ''],
|
||||||
@ -100,7 +102,7 @@ units = [
|
|||||||
['systemd-firstboot.service', 'ENABLE_FIRSTBOOT',
|
['systemd-firstboot.service', 'ENABLE_FIRSTBOOT',
|
||||||
'sysinit.target.wants/'],
|
'sysinit.target.wants/'],
|
||||||
['systemd-halt.service', ''],
|
['systemd-halt.service', ''],
|
||||||
['systemd-initctl.socket', '',
|
['systemd-initctl.socket', 'HAVE_SYSV_COMPAT',
|
||||||
'sockets.target.wants/'],
|
'sockets.target.wants/'],
|
||||||
['systemd-journal-catalog-update.service', '',
|
['systemd-journal-catalog-update.service', '',
|
||||||
'sysinit.target.wants/'],
|
'sysinit.target.wants/'],
|
||||||
|
Loading…
Reference in New Issue
Block a user