Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Mar 2012 13:52:05 -0800
From:      Julian Elischer <julian@freebsd.org>
To:        Devin Teske <devin.teske@fisglobal.com>
Cc:        freebsd-current@freebsd.org, 'Devin Teske' <dteske@vicor.com>, 'Andriy Gapon' <avg@freebsd.org>
Subject:   Re: revisiting tunables under Safe Mode menu option
Message-ID:  <4F4FEF85.2050308@freebsd.org>
In-Reply-To: <074701ccf7f3$315cca20$94165e60$@fisglobal.com>
References:  <4F26CC5A.2070501@FreeBSD.org> <4F4C0600.2000903@FreeBSD.org>	<3BA1B476-ED05-4E8E-8DFA-0B06EFB48867@samsco.org>	<201202280846.08966.jhb@freebsd.org>	<A8C72CB9-4C77-4697-8C28-63A2E10C557D@fisglobal.com>	<4F4F35B9.5090308@FreeBSD.org> <06bb01ccf7cb$b255a200$1700e600$@fisglobal.com> <4F4FE85D.4070205@freebsd.org> <074701ccf7f3$315cca20$94165e60$@fisglobal.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/1/12 1:35 PM, Devin Teske wrote:
> Right, making the assumption that FreeBSD's safe mode will do the same thing as
> Windows' safe mode is a poor assumption.
>
> As you point out, all those things that Windows safe mode does, FreeBSD does
> not.
>
> X11 drivers are not affected by safe mode.
>
> Network is not affected by safe mode.
>
> Services started at boot, are not affected...
>
> So I would welcome discussions involving development of something better (and am
> willing to help).

but, with help from the rc people. it could..
the kenv framework gives us a much more flexible way to implement the 
sysV runlevels that linux inherrited.

here's what I would envision:

a single safe mode switch
a way to control what that does (either 'safe mode' drops you to 
another menu which includes
"boot safe mode:" and "configure safe mode" (the second one drops you 
to yet another menu of check boxes).

the result of this is a preconfigured set of kenv entries being dumped 
into the kenv space.

The rc system can look at the kenv space for some key entries and act 
accordingly.
it can also SAVE to /boot/safe_mode.conf the set of kenv entries 
selected when safe mode is used,
and the forth code can load that and use it as a default on next 
'safe' mode usage.


BTW do we use the forth boot stuff on all architectures?
what of NFS boots?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F4FEF85.2050308>