In such case, the generator is meaningless. Let's kill it.
'8',
['systemd-random-seed'],
'ENABLE_RANDOMSEED'],
- ['systemd-rc-local-generator', '8', ['rc-local.service'], 'HAVE_SYSV_COMPAT'],
+ ['systemd-rc-local-generator',
+ '8',
+ ['rc-local.service'],
+ 'HAVE_SYSV_COMPAT HAVE_SYSV_RC_LOCAL'],
['systemd-remount-fs.service', '8', ['systemd-remount-fs'], ''],
['systemd-repart', '8', ['systemd-repart.service'], 'ENABLE_REPART'],
['systemd-resolved.service', '8', ['systemd-resolved'], 'ENABLE_RESOLVE'],
]>
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
-<refentry id="systemd-rc-local-generator" conditional='HAVE_SYSV_COMPAT'>
+<refentry id="systemd-rc-local-generator" conditional='HAVE_SYSV_COMPAT HAVE_SYSV_RC_LOCAL'>
<refentryinfo>
<title>systemd-rc-local-generator</title>
<productname>systemd</productname>
sysvrcnd_path = get_option('sysvrcnd-path')
conf.set10('HAVE_SYSV_COMPAT', sysvinit_path != '' and sysvrcnd_path != '',
description : 'SysV init scripts and rcN.d links are supported')
+sysvrclocal_path = get_option('rc-local')
+conf.set10('HAVE_SYSV_RC_LOCAL', sysvrclocal_path != '')
conf.set10('CREATE_LOG_DIRS', get_option('create-log-dirs'))
if get_option('hibernate') and not get_option('initrd')
description : 'the directory where the SysV init scripts are located')
option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
description : 'the base directory for SysV rcN.d directories')
-option('rc-local', type : 'string',
- value : '/etc/rc.local')
+option('rc-local', type : 'string', value : '/etc/rc.local',
+ description : 'path to SysV rc.local script')
option('initrd', type : 'boolean',
description : 'install services for use when running systemd in initrd')
option('compat-mutable-uid-boundaries', type : 'boolean', value : false,
executables += [
generator_template + {
'name' : 'systemd-rc-local-generator',
- 'conditions' : ['HAVE_SYSV_COMPAT'],
'sources' : files('rc-local-generator.c'),
+ 'conditions' : [
+ 'HAVE_SYSV_COMPAT',
+ 'HAVE_SYSV_RC_LOCAL',
+ ],
},
]