[PATCH] Fix kenv(1) output in w/respect to new boot loader variables

Sergey Kandaurov pluknet at gmail.com
Fri Dec 30 06:27:11 UTC 2011


On 28 December 2011 05:26, Devin Teske <devin.teske at fisglobal.com> wrote:
> D'Oh! Attached wrong (OLD; already applied) patch.
>
> Please find appropriate patch attached!

Hi.

I committed your patch to head as svn r228985.
Thank you!

>
>> -----Original Message-----
>> From: Devin Teske [mailto:devin.teske at fisglobal.com]
>> Sent: Tuesday, December 27, 2011 5:24 PM
>> To: 'freebsd-hackers at freebsd.org'
>> Cc: Garrett Cooper; devin.teske at fisglobal.com
>> Subject: [PATCH] Fix kenv(1) output in w/respect to new boot loader variables
>>
>> Garrett Cooper and a few others have requested that I write a patch to fix a
>> regression w/respect to kenv(1) output in FreeBSD-9.0 and HEAD.
>>
>> The issue is with the new boot loader menu. It adds many loader variables
>> including ones that contain ANSI color escapes.
>>
>> Obviously, these ANSI codes don't play well with serial consoles when kenv(1)
> is
>> executed without arguments (reports vary as to what happens, but it's never
>> pretty).
>>
>> Attached is a patch to the Forth code that clears-out the menu-associated
>> variables before invoking the kernel.
>>
>> The net-effect is that kenv(1) no longer reports menu-related variables.
>>
>> In essence, kenv(1) output should now appear the same as on RELENG_8 (which
>> lacks the new boot loader and didn't use any such variables). Thus, restoring
>> serial console glory.
>> --
>> Devin
>
> _____________
> The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

Great!

-- 
wbr,
pluknet


More information about the freebsd-hackers mailing list