From owner-freebsd-stable@FreeBSD.ORG Mon Feb 13 11:05:34 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 249EC106566C; Mon, 13 Feb 2012 11:05:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id BE2268FC18; Mon, 13 Feb 2012 11:05:33 +0000 (UTC) Received: from outgoing.leidinger.net (p4FC42309.dip.t-dialin.net [79.196.35.9]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 951E6844A43; Mon, 13 Feb 2012 12:05:18 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTPS id C3F0B2F1D; Mon, 13 Feb 2012 12:05:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1329131115; bh=XuPMgc0Oe4pZ838EEiClTRYkLqbnsijZPGDpTtteOp4=; h=Date:Message-ID:From:To:Cc:Subject:References:In-Reply-To: Content-Type:MIME-Version; b=QRFaem7DNfnZb4ZwQpNWl/kcdZmXFfCS5xoy/kfTmgh+GkSggKCj81SNfAJUuo+uI PGcftlccQwUpfxwu0sj+d2Ajx2hvXeZxa3gtPPxlB81j4yvxBTgl15s1yl9f5KvyyY KaThn3fPjhR1VhpgPZVpdXOVvFVHw9JqvkS7PVqHkLssooDLIGCzK3Ksps1TxqAM3d CYNSWWn6kvDjqHXsTIY/PXlGCY7CMAiP8uZTfZlXarAHyc3sm4B7JVnoDUUdeuIZOa wwU23St8Z1ASfcVVhQpnotUoZLTmwyKgPrmMSHx1T/4y7eIk1qN4EJ+4Sl7d2Ce9ho 6HtA5SPZy4P/Q== Received: (from www@localhost) by webmail.leidinger.net (8.14.5/8.14.4/Submit) id q1DB5Enf040281; Mon, 13 Feb 2012 12:05:14 +0100 (CET) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from 85.94.224.20 ([85.94.224.20]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 13 Feb 2012 12:05:14 +0100 Date: Mon, 13 Feb 2012 12:05:14 +0100 Message-ID: <20120213120514.Horde.LMNbOJjmRSRPOO5qpDYJzWA@webmail.leidinger.net> From: Alexander Leidinger To: perryh@pluto.rain.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> In-Reply-To: <4f38e34a.lZtNaNETBImp/XiD%perryh@pluto.rain.com> User-Agent: Internet Messaging Program (IMP) H4 (5.0.18) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 951E6844A43.AF03C X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=0.128, required 6, autolearn=disabled, AWL -1.53, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, RCVD_IN_SORBS 1.00, RCVD_IN_SORBS_WEB 0.61, TW_KB 0.08, TW_TK 0.08, T_RP_MATCHES_RCVD -0.01) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1329735920.31264@iKl0oM9vEKLrUUe87Qi9eg X-EBL-Spam-Status: No Cc: thierry@freebsd.org, stable@freebsd.org Subject: Re: Reducing the need to compile a custom kernel X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:05:34 -0000 Quoting perryh@pluto.rain.com (from Mon, 13 Feb 2012 02:17:46 -0800): > Alexander Leidinger wrote: >> On Sun, 12 Feb 2012 03:05:02 -0800 perryh@pluto.rain.com wrote: >> > Alexander Leidinger wrote: >> > > On Sat, 11 Feb 2012 13:40:41 +0100 Thierry Thomas >> > > wrote: >> > > > is there another place to put options to atkbd and sc, like >> > > > these ones: >> > > > >> > > > options ATKBD_DFLT_KEYMAP # specify the built-in >> > > > keymap makeoptions ATKBD_DFLT_KEYMAP=fr.iso.acc >> > > > ... >> > > >> > > No, there is no other way to add the keymap to the kernel >> > > directly (if you want to have it working correctly in >> > > single-user mode) instead of loading it with rc.conf. >> > >> > Might it be feasible to make it into a sysctl, so it could be >> > set in loader.conf? >> >> There is already a way to configure this as soon as you have a >> working userland. What this setting is doing is to replace the >> compiled-in default keymap with a different one, so that you have >> the one which matches your keyboard even when you enter the very >> first keystrokes in single-user mode (root-pw, path to shell, ...). > > My point is, if it were made into a sysctl, it could presumably > be set in loader.conf -- thereby providing the correct keymap for > those "very first keystrokes" without needing a custom kernel. > > I know that's not how it works _now_, but is there some reason why > this approach is not feasible? It seems like something that could > potentially go on the the list of projects to reduce the need for > custom kernels. 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. Bye, Alexander. -- On successive charts of the same organization, the number of boxes will never decrease. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137