Several cleanups for rc-local-generator (#36953)

This commit is contained in:
Yu Watanabe
2025-04-03 04:05:45 +09:00
committed by GitHub
8 changed files with 25 additions and 17 deletions
+4 -1
View File
@@ -3,7 +3,10 @@
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',
],
},
]
+1 -1
View File
@@ -64,7 +64,7 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
return EXIT_SUCCESS;
}
if (check_executable(RC_LOCAL_PATH) >= 0) {
if (check_executable(SYSTEM_SYSVRCLOCAL_PATH) >= 0) {
log_debug("Automatically adding rc-local.service.");
r = add_symlink("rc-local.service", "multi-user.target");