[PATCH] Overriding rc.conf in loader

Ed Schouten ed at fxq.nl
Sun Nov 4 12:14:43 PST 2007


* Marcin Wisnicki <mwisnicki+freebsd at gmail.com> wrote:
> I thought it would be nice if there was a way to override rc.conf
> variables during boot. Proposed patch implements this using kenv.
> 
> With it, you can override any rc variable from loader.conf by prefixing 
> its name with 'rc.', some useful examples:
> 
>  # disable gdm
>  set rc.gdm_enable=no
> 
>  # start only base scripts
>  set rc.local_startup=
> 
>  # alternative rc.conf
>  set rc.rc_conf_files=/etc/rc.conf.safe
> 
> I find it often more convenient than booting into single-user, remounting
> rw and editing conf files.
> 
> If it's worth committing I can try to update rc.conf(5) & loader(8) manuals.

That's a great idea! AOL: Me Too! ;-)

-- 
 Ed Schouten <ed at fxq.nl>
 WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071104/a8322bb5/attachment.pgp


More information about the freebsd-current mailing list