From owner-freebsd-stable@FreeBSD.ORG Tue May 27 23:12:01 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 38D234D3; Tue, 27 May 2014 23:12:01 +0000 (UTC) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2EAD20AE; Tue, 27 May 2014 23:12:00 +0000 (UTC) Received: by mail-yk0-f176.google.com with SMTP id q9so7726090ykb.35 for ; Tue, 27 May 2014 16:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1yH8J+h7qmVejZs9hIX7XulOYFRkXRHzw3YgLH+WvAM=; b=dbKqbav+66crEppN/I3/czkvEQIBXP+qddM5L7zkSEvUIkeCVfgrnOKuno5iV6TNtf nuSDHkYuJDnNc19DXo3dtEy5yAa/wjOmXMPssJYBQNBBgmE9S8UeWiVBDzNEffQEXR6t x7tatIZjyvDAQcHJ7CTwnnFqxBd8tYTyTxg1BwfCp8dK/4/YHwYjXOZIGkoWVetUyAzo WRflqcPnPmqolhvvRHgcdL0xrGA5ViM2oVHqASxDrlKa0XSY6BUMIeaeTBSrNuPdjZqw +arv2eMUa1hxrWL9rbwmA3LjOw6xQ4vrFR4zK/2pkYI8GT2qoS6yWSHYBJmeRiY/Wktk unbA== MIME-Version: 1.0 X-Received: by 10.236.156.170 with SMTP id m30mr49961931yhk.60.1401232319985; Tue, 27 May 2014 16:11:59 -0700 (PDT) Received: by 10.170.89.65 with HTTP; Tue, 27 May 2014 16:11:59 -0700 (PDT) In-Reply-To: <15FBEC62-3DB8-4A58-9E7A-C6B783D669D7@shxd.cx> References: <15FBEC62-3DB8-4A58-9E7A-C6B783D669D7@shxd.cx> Date: Wed, 28 May 2014 01:11:59 +0200 Message-ID: Subject: Re: boot menu's kernel chooser always lists kernel.old From: Idwer Vollering To: Devin Teske Content-Type: text/plain; charset=UTF-8 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 23:12:01 -0000 2014-05-27 18:50 GMT+02:00 Devin Teske : > > >> 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. kernel.old does not exist on this installation. > > 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 Correct, however $kernels is commented out: $ grep -i kernels= /boot/loader.conf /boot/defaults/loader.conf /boot/defaults/loader.conf:#kernels="kernel kernel.old" # Kernels to display in the boot menu > > 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 Idwer