From owner-freebsd-current@FreeBSD.ORG Fri Oct 10 15:29:19 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43A8A1065695 for ; Fri, 10 Oct 2008 15:29:19 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0888F8FC18 for ; Fri, 10 Oct 2008 15:29:18 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 4EE4F730A8; Fri, 10 Oct 2008 17:14:56 +0200 (CEST) Date: Fri, 10 Oct 2008 17:14:56 +0200 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20081010151456.GA27576@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: setting bootverbose (or boothowto) from the kernel config file ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2008 15:29:19 -0000 In a diskless setting which does not use /boot/loader, i need to control the value of 'bootverbose' to print extra debugging messages. I just learned that using this line in the kernel config file env "my_kenv_settings" and providing a list of var.name=value in the file my_kenv_settings, these values get dumped to compile/MYKERNEL/env.c and become accessible from the kernel through getenv() (e.g. i used this for machdep.bios.pnp). However i haven't found a way to set 'bootverbose', which is a sysctl variable (debug.bootverbose) so it seems to be in a different namespace. Any ideas ? Also, what is exactly the relation between the two variables 'boothowto' (apparently set through the loader and containing various flags) and 'bootverbose' (which is a sysctl) ? Different parts of the kernel use one or the other to control verbose output, and i am not sure if, e.g. setting RB_VERBOSE in 'boothowto' also sets bootverbose... thanks luigi