units: drop runlevel[0-6].target

This commit is contained in:
Yu Watanabe
2025-04-21 09:47:04 +09:00
parent dc1505555b
commit e58ba80a40
6 changed files with 7 additions and 65 deletions

View File

@@ -1,7 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
with_runlevels = conf.get('HAVE_SYSV_COMPAT') == 1
units = [
{ 'file' : 'basic.target' },
{ 'file' : 'blockdev@.target' },
@@ -51,7 +49,7 @@ units = [
},
{
'file' : 'graphical.target',
'symlinks' : ['default.target'] + (with_runlevels ? ['runlevel5.target'] : []),
'symlinks' : ['default.target'],
},
{ 'file' : 'halt.target' },
{
@@ -144,20 +142,14 @@ units = [
'conditions' : ['ENABLE_MACHINED'],
},
{ 'file' : 'modprobe@.service' },
{
'file' : 'multi-user.target',
'symlinks' : with_runlevels ? ['runlevel2.target', 'runlevel3.target', 'runlevel4.target'] : [],
},
{ 'file' : 'multi-user.target' },
{ 'file' : 'network-online.target' },
{ 'file' : 'network-pre.target' },
{ 'file' : 'network.target' },
{ 'file' : 'nss-lookup.target' },
{ 'file' : 'nss-user-lookup.target' },
{ 'file' : 'paths.target' },
{
'file' : 'poweroff.target',
'symlinks' : with_runlevels ? ['runlevel0.target'] : [],
},
{ 'file' : 'poweroff.target' },
{ 'file' : 'printer.target' },
{
'file' : 'proc-sys-fs-binfmt_misc.automount',
@@ -182,7 +174,7 @@ units = [
},
{
'file' : 'reboot.target',
'symlinks' : ['ctrl-alt-del.target'] + (with_runlevels ? ['runlevel6.target'] : []),
'symlinks' : ['ctrl-alt-del.target'],
},
{
'file' : 'remote-cryptsetup.target',
@@ -202,10 +194,7 @@ units = [
'symlinks' : ['initrd-root-device.target.wants/'],
},
{ 'file' : 'rescue.service.in' },
{
'file' : 'rescue.target',
'symlinks' : with_runlevels ? ['runlevel1.target'] : [],
},
{ 'file' : 'rescue.target' },
{ 'file' : 'rpcbind.target' },
{ 'file' : 'serial-getty@.service.in' },
{ 'file' : 'shutdown.target' },
@@ -983,10 +972,4 @@ else
dbussessionservicedir / 'org.freedesktop.systemd1.service'))
endif
if conf.get('HAVE_SYSV_COMPAT') == 1
foreach i : [1, 2, 3, 4, 5]
install_emptydir(systemunitdir / 'runlevel@0@.target.wants'.format(i))
endforeach
endif
subdir('user')