RFC: support for "first boot" rc.d scripts

Colin Percival cperciva at freebsd.org
Mon Oct 14 16:54:37 UTC 2013


On 10/14/13 05:07, Hiroki Sato wrote:
> Colin Percival <cperciva at freebsd.org> wrote
>   in <525B258F.3030403 at freebsd.org>:
> 
> cp> I've attached a very simple patch which makes /etc/rc:
> 
> cp> +if ! [ -e /var/db/firstboot ]; then
> cp> +	skip="$skip -s firstboot"
> cp> +fi
> 
>  At this stage, it is possible that /var/db does not exist because it
>  is before rc.d/mountcritlocal.

Ah, good point.  I guess we need something on / then?

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



More information about the freebsd-current mailing list