Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 2020 17:21:04 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Alexey Dokuchaev <danfe@freebsd.org>, Warner Losh <imp@bsdimp.com>
Cc:        Kyle Evans <kevans@freebsd.org>, Toomas Soome <tsoome@me.com>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r366626 - head/sbin/reboot
Message-ID:  <4b263aa7-a56a-7c3a-e97f-172d4451e2d0@grosbein.net>
In-Reply-To: <20201012033333.GB38670@FreeBSD.org>
References:  <202010111040.09BAeCfg073782@repo.freebsd.org> <8601CC07-3A43-461A-915C-3CB68BADF41A@me.com> <20201011130151.GA32755@FreeBSD.org> <35355AD6-42C6-48A2-8FCF-A371A82D683A@me.com> <20201011133023.GA67893@FreeBSD.org> <CACNAnaH%2BocNxvkXiiqa_13RRf5oT9O0jTjik2gw_83WHStXTeA@mail.gmail.com> <CANCZdfpL0ajtSjFYj-5p3Si_vsV-4Q_qHkNY8oaVDsZ%2BZwQcLg@mail.gmail.com> <20201012021324.GA38670@FreeBSD.org> <CANCZdfr49FPdOQQ3-rQwEKC4HrkqZVOUu2gCWgO4NKTKrOsx3A@mail.gmail.com> <20201012033333.GB38670@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
12.10.2020 10:33, Alexey Dokuchaev wrote:

> On Sun, Oct 11, 2020 at 09:17:42PM -0600, Warner Losh wrote:
>> On Sun, Oct 11, 2020, 8:13 PM Alexey Dokuchaev wrote:
>>> ...
>>> I still don't understand how could rm be better than graceful disabling
>>> alternative configuration with nextboot_enable="NO".  I most certainly
>>> do *not* like when my custom config files are being removed, especially
>>> silently.  When I see nextboot_enable="NO"<space> I know that the file
>>> had been processed, and processed by the machine, not me (since I would
>>> never add trailing space).  When I don't see the file, I'd be questioning
>>> myself if I've ever added it here, or maybe I put in the wrong location.
>>
>> Nextboot.conf is special. It will be deleted. It doesn't belong to you, it
>> belongs to nextboot(8).
> 
> OK, I see your point.
> 
>>> Personally I find them quite useful, except when they contradict the
>>> reality (like this time).  In these cases, I'd fix them.
>>
>> For now, it's fine.

Note that testing kernel sometimes *requires* additional set of loader settings
like kernel parameter tuning and/or set of kernel modules loaded including NICs or GEOMs like gjournal/graid
that may affect boot process. And our loader does apply such settings when processing nextboot.conf.

Maybe this is the reason nextboot.conf should be removed after it fired once.
I personally edit it manually every time I use this feature and I keep a copy of the file with distinct name
to restore it for another run.








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4b263aa7-a56a-7c3a-e97f-172d4451e2d0>