git: ca876906cfc1 - stable/15 - cleanvar: Fix startup order
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Dec 2025 22:02:36 UTC
The branch stable/15 has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=ca876906cfc10099873998c497758d5a8e2e0091
commit ca876906cfc10099873998c497758d5a8e2e0091
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-12-08 10:30:05 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-12-13 22:01:14 +0000
cleanvar: Fix startup order
Instead of having FILESYSTEMS require cleanvar, which doesn't really
make semantic sense, say that cleanvar needs to run before FILESYSTEMS.
MFC after: 3 days
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D54118
(cherry picked from commit 6ce227d6274869a95150746d2f2d8c8c5ed9a266)
---
libexec/rc/rc.d/FILESYSTEMS | 2 +-
libexec/rc/rc.d/cleanvar | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/libexec/rc/rc.d/FILESYSTEMS b/libexec/rc/rc.d/FILESYSTEMS
index 1bf52077be8e..d93d65153e41 100755
--- a/libexec/rc/rc.d/FILESYSTEMS
+++ b/libexec/rc/rc.d/FILESYSTEMS
@@ -3,7 +3,7 @@
#
# PROVIDE: FILESYSTEMS
-# REQUIRE: root mountcritlocal cleanvar tmp
+# REQUIRE: root mountcritlocal tmp var
# This is a dummy dependency, for services which require filesystems
# to be mounted before starting. It also serves as the default early /
diff --git a/libexec/rc/rc.d/cleanvar b/libexec/rc/rc.d/cleanvar
index dce5baa6875b..daae456fbe71 100755
--- a/libexec/rc/rc.d/cleanvar
+++ b/libexec/rc/rc.d/cleanvar
@@ -4,6 +4,7 @@
# PROVIDE: cleanvar
# REQUIRE: var
+# BEFORE: FILESYSTEMS
. /etc/rc.subr