Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2012 09:10:40 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        thierry@freebsd.org, stable@freebsd.org, perryh@pluto.rain.com
Subject:   Re: Reducing the need to compile a custom kernel
Message-ID:  <20120214091040.Horde.Lwy6S5jmRSRPOhcAha9RNLA@webmail.leidinger.net>
In-Reply-To: <4F392FE1.5070901@gmail.com>
References:  <20120210145604.Horde.ewjpSpjmRSRPNSH0YRHxgAk@webmail.leidinger.net> <20120211124041.GF32360@graf.pompo.net> <20120211183308.00007579@unknown> <4f379cde.l6lDd9rduQzDU/xx%perryh@pluto.rain.com> <20120212120633.0000302d@unknown> <4f38e34a.lZtNaNETBImp/XiD%perryh@pluto.rain.com> <20120213120514.Horde.LMNbOJjmRSRPOO5qpDYJzWA@webmail.leidinger.net> <4F392FE1.5070901@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Volodymyr Kostyrko <c.kworr@gmail.com> (from Mon, 13 Feb 2012  
17:44:33 +0200):

> Alexander Leidinger wrote:
>> Feasible: depend upon your definition of "feasible". You would have to
>> add all keymaps statically into the kernel. No idea which parts exactly
>> we talk about, but:
>> ---snip---
>> % du -h /usr/share/syscons/
>> 40k /usr/share/syscons/scrnmaps
>> 570k /usr/share/syscons/fonts
>> 1.1M /usr/share/syscons/keymaps
>> 1.8M /usr/share/syscons/
>> ---snip---
>>
>> I wouldn't mind for 40k, but 1.8M looks more like the value to calculate
>> with. Anyway, this is out of the scope of the original question.
>
> Correct me if I'm wrong but zfs already fetches plain file  
> /boot/zfs/zpool.cache on load. Can't this be:
>
>  1. Postponed to later processing.
>  2. After filesystems are mounted the keymap is loaded.

This is already the case. you can set the keymap in rc.conf.

> Or even:
>
>  1. Put all viable files on the / partition.
>  2. Select and load correct one before kernel is fired.

This is not the same as compiling it in the kernel. Think about a  
problem where parts of your FS are corrupt / damaged / overwritten  
with nonsense. Yes you can minimize the problem by loading it more  
early, but having it in the kernel removes the keyboard problem  
completely.

Bye,
Alexander.

-- 
A lost ounce of gold may be found, a lost moment of time never.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120214091040.Horde.Lwy6S5jmRSRPOhcAha9RNLA>