Re: revisiting tunables under Safe Mode menu option

From: John Baldwin <jhb_at_freebsd.org>
Date: Tue, 28 Feb 2012 08:52:14 -0500
On Monday, February 27, 2012 4:49:34 pm Andriy Gapon wrote:
> on 27/02/2012 18:26 John Baldwin said the following:
> > On Monday, February 27, 2012 5:45:39 am Andriy Gapon wrote:
> >> How does the following look?
> >> diff --git a/sys/boot/forth/menu-commands.4th b/sys/boot/forth/menu-commands.4th
> >> index 828a148..41ba317 100644
> >> --- a/sys/boot/forth/menu-commands.4th
> >> +++ b/sys/boot/forth/menu-commands.4th
> >> _at__at_ -62,30 +62,19 _at__at_ marker task-menu-commands.4th
> >>  	-rot 2dup 12 + c! rot    \ replace 'N' with ASCII numeral
> >>
> >>  	evaluate 0= if
> >> -		s" hint.apic.0.disabled" unsetenv
> >>  		s" hw.ata.ata_dma" unsetenv
> >>  		s" hw.ata.atapi_dma" unsetenv
> >>  		s" hw.ata.wc" unsetenv
> >> -		s" hw.eisa_slots" unsetenv
> >> -		s" hint.kbdmux.0.disabled" unsetenv
> >> +		s" kern.eventtimer.periodic" unsetenv
> >> +		s" kern.geom.part.check_integrity" unsetenv
> >> +		s" debug.acpi.disabled" unsetenv
> >>  	else
> >> -		\
> >> -		\ Toggle ACPI elements if necessary
> >> -		\
> >> -		acpipresent? if acpienabled? if
> >> -			menuacpi _at_ dup 0<> if
> >> -				toggle_menuitem ( N -- N )
> >> -			then
> >> -			drop
> >> -			acpi_disable
> >> -		then then
> >> -
> >> -		s" set hint.apic.0.disabled=1" evaluate
> >>  		s" set hw.ata.ata_dma=0" evaluate
> >>  		s" set hw.ata.atapi_dma=0" evaluate
> >>  		s" set hw.ata.wc=0" evaluate
> >> -		s" set hw.eisa_slots=0" evaluate
> >> -		s" set hint.kbdmux.0.disabled=1" evaluate
> >> +		s" set kern.eventtimer.periodic=1" unsetenv
> >> +		s" set kern.geom.part.check_integrity=0" unsetenv
> >> +		s" set debug.acpi.disabled=hostres" unsetenv
> >>  	then
> >>
> >>  	menu-redraw
> > 
> > I'm not sure we need the 'hostres' thing in HEAD and 9-stable after my latest
> > changes?  Other than that I think this is fine.
> 
> I added it based on the past reports.  If you think that it's not useful now,
> then I'll drop it.  Thanks!

I think it should not be needed now.  It would be needed if you merged this to
9.0 release.

-- 
John Baldwin
Received on Tue Feb 28 2012 - 14:18:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:24 UTC