[RFC] Split nextboot deletion from /etc/rc.d/root

Xin LI delphij at delphij.net
Tue Mar 11 01:11:39 PDT 2008


Mike Telahun Makonnen wrote:
> On Sat, Mar 8, 2008 at 3:31 AM, Xin LI <delphij at delphij.net> wrote:
>> Hi,
>>
>> Here is a patch that moves the nextboot deletion from /etc/rc.d/root to
>> a new script which would be fired after mountlate.  The reason behind
>> this is that /boot is not necessarily part of the /, and doing nextboot
>> -D would give an error if /boot is not mounted (i.e. in a typical setup
>> of ZFS root).
>>
>> Objections?
> 
> How about simply adding it to rc.d/mountlate as well as rc.d/root
> instead of writing a separate script.

Yes, I think this is reasonable, thanks for that.

To all:

I intend to change nextboot -D into nextboot -D > /dev/null 2>&1 in 
rc.d/root and add nextboot -D into mountlate.  Any objections?

Cheers,
-- 
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!


More information about the freebsd-rc mailing list