Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2024 23:00:54 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Robert Wing <rew@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org,  dev-commits-src-main@freebsd.org
Subject:   Re: git: 4cea0cbcc9d3 - main - rc.d/mountlate: discard output from nextboot
Message-ID:  <CANCZdfq5WJVd=ddzBMapBqFWphjByaMo7QDXO6wVjcriY35v3A@mail.gmail.com>
In-Reply-To: <202402210559.41L5xZjY056431@gitrepo.freebsd.org>
References:  <202402210559.41L5xZjY056431@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
This change is wrong, please revert.

I'll make nextboot silent again.

Warner

On Tue, Feb 20, 2024 at 10:59 PM Robert Wing <rew@freebsd.org> wrote:

> 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
>  }
>
>

[-- Attachment #2 --]
<div dir="ltr"><div>This change is wrong, please revert.</div><div><br></div><div>I&#39;ll make nextboot silent again.</div><div><br></div><div>Warner<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 20, 2024 at 10:59 PM Robert Wing &lt;<a href="mailto:rew@freebsd.org">rew@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The branch main has been updated by rew:<br>
<br>
URL: <a href="https://cgit.FreeBSD.org/src/commit/?id=4cea0cbcc9d3a6583e5325ca081c09c8a9423172" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/src/commit/?id=4cea0cbcc9d3a6583e5325ca081c09c8a9423172</a><br>;
<br>
commit 4cea0cbcc9d3a6583e5325ca081c09c8a9423172<br>
Author:     Robert Wing &lt;rew@FreeBSD.org&gt;<br>
AuthorDate: 2024-02-21 05:50:43 +0000<br>
Commit:     Robert Wing &lt;rew@FreeBSD.org&gt;<br>
CommitDate: 2024-02-21 05:50:43 +0000<br>
<br>
    rc.d/mountlate: discard output from nextboot<br>
<br>
    silent the warning seen at boot:<br>
<br>
        Mounting late filesystems:.<br>
        nextboot: unlink /boot/nextboot.conf: No such file or directory<br>
<br>
        Sun Feb 18 23:31:52 AKST 2024<br>
<br>
        FreeBSD/amd64 (main) (ttyv0)<br>
<br>
        login:<br>
<br>
    Differential Revision:  <a href="https://reviews.freebsd.org/D43979" rel="noreferrer" target="_blank">https://reviews.freebsd.org/D43979</a><br>;
---<br>
 libexec/rc/rc.d/mountlate | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/libexec/rc/rc.d/mountlate b/libexec/rc/rc.d/mountlate<br>
index 133192ac183c..4547e8ec6876 100755<br>
--- a/libexec/rc/rc.d/mountlate<br>
+++ b/libexec/rc/rc.d/mountlate<br>
@@ -39,7 +39,7 @@ mountlate_start()<br>
        # If we booted a special kernel remove the record<br>
        # so we will boot the default kernel next time.<br>
        if [ -x /sbin/nextboot ]; then<br>
-               /sbin/nextboot -D<br>
+               /sbin/nextboot -D &gt; /dev/null 2&gt;&amp;1<br>
        fi<br>
 }<br>
<br>
</blockquote></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq5WJVd=ddzBMapBqFWphjByaMo7QDXO6wVjcriY35v3A>