git: 4cea0cbcc9d3 - main - rc.d/mountlate: discard output from nextboot
Date: Wed, 21 Feb 2024 05:59:35 UTC
The branch main has been updated by rew:
URL: https://cgit.FreeBSD.org/src/commit/?id=4cea0cbcc9d3a6583e5325ca081c09c8a9423172
commit 4cea0cbcc9d3a6583e5325ca081c09c8a9423172
Author: Robert Wing <rew@FreeBSD.org>
AuthorDate: 2024-02-21 05:50:43 +0000
Commit: Robert Wing <rew@FreeBSD.org>
CommitDate: 2024-02-21 05:50:43 +0000
rc.d/mountlate: discard output from nextboot
silent the warning seen at boot:
Mounting late filesystems:.
nextboot: unlink /boot/nextboot.conf: No such file or directory
Sun Feb 18 23:31:52 AKST 2024
FreeBSD/amd64 (main) (ttyv0)
login:
Differential Revision: https://reviews.freebsd.org/D43979
---
libexec/rc/rc.d/mountlate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/rc/rc.d/mountlate b/libexec/rc/rc.d/mountlate
index 133192ac183c..4547e8ec6876 100755
--- a/libexec/rc/rc.d/mountlate
+++ b/libexec/rc/rc.d/mountlate
@@ -39,7 +39,7 @@ mountlate_start()
# If we booted a special kernel remove the record
# so we will boot the default kernel next time.
if [ -x /sbin/nextboot ]; then
- /sbin/nextboot -D
+ /sbin/nextboot -D > /dev/null 2>&1
fi
}