Minor, relocate path definition to finit.h

This is where the other path definitions live.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-07-06 03:13:57 +02:00
parent 1b9e69414e
commit 0861373d14
2 changed files with 5 additions and 3 deletions
+5
View File
@@ -54,6 +54,11 @@
#define FINIT_CGPATH "/sys/fs/cgroup"
#endif
/* Prevent users from logging in at critical stages */
#ifndef FINIT_NOLOGIN_PATH
#define FINIT_NOLOGIN_PATH _PATH_NOLOGIN
#endif
/* To use these, include config.h, or define FINIT_EXECPATH_ */
#define _PATH_LOGIT FINIT_EXECPATH_ "/logit"
#define _PATH_RUNPARTS FINIT_EXECPATH_ "/runparts"
-3
View File
@@ -57,9 +57,6 @@ static struct {
int in_reload; /* Set when waiting for all processes to be halted */
} sm;
#ifndef FINIT_NOLOGIN_PATH
#define FINIT_NOLOGIN_PATH _PATH_NOLOGIN /* Stop user logging in. */
#endif
/*
* Wait for system bootstrap to complete, all SVC_TYPE_RUNTASK must be