From owner-freebsd-stable@FreeBSD.ORG Tue May 27 16:50:49 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2946263A; Tue, 27 May 2014 16:50:49 +0000 (UTC) Received: from shxd.cx (unknown [64.201.244.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 14EFB2DD4; Tue, 27 May 2014 16:50:49 +0000 (UTC) Received: from [50.204.88.51] (port=10746 helo=[10.2.8.76]) by shxd.cx with esmtps (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1WpIO5-0003JF-S2; Tue, 27 May 2014 07:29:57 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: boot menu's kernel chooser always lists kernel.old From: Devin Teske X-Mailer: iPhone Mail (11B554a) In-Reply-To: Date: Tue, 27 May 2014 09:50:41 -0700 Content-Transfer-Encoding: 7bit Message-Id: <15FBEC62-3DB8-4A58-9E7A-C6B783D669D7@shxd.cx> References: To: Idwer Vollering Cc: "dteske@freebsd.org" , "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2014 16:50:49 -0000 > On May 24, 2014, at 1:42 PM, Idwer Vollering wrote: > > 2014-05-24 22:41 GMT+02:00 Idwer Vollering : >> When trying to boot /boot/kernel.old/kernel while the directory >> kernel.old is absent, this text is shown: "error while including >> /boot/menu.rc, in the line: >> menu-display". > > Forgot to include build details, here they are: FreeBSD 10-STABLE r266623 Simple... don't try to boot kernel.old if it doesn't exist. If you are unsure if it exists, don't select it. If you select It and get the aforementioned error, it doesn't exist. There is no seatbelt for the kernel selection menu. It displays the kernels listed (separated by white space or comma) in the $kernels environment var which defaults to "kernel kernel.old" in the file /boot/defaults/loader.conf (you can override the value by setting kernels in /boot/loader.conf So if you really didn't want kernel.old to be shown you can add kernels=kernel to /boot/loader.conf But should you suddenly create a kernel.old, the value will need adjusting to show it as an option once-again. The value of kernels is not dynamically driven but must be manually maintained either by a script or a Human. -- Devin