From owner-freebsd-current@freebsd.org Thu Dec 14 07:15:06 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62734E996A0 for ; Thu, 14 Dec 2017 07:15:06 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2874877D23; Thu, 14 Dec 2017 07:15:06 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x244.google.com with SMTP id m11so23903909iti.1; Wed, 13 Dec 2017 23:15:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mzDTfgE4MZGh7mt2oxUQ+s9zdha4Sbm2wovnQL9Qij0=; b=jQEjIuAo/KEZkIN+SaolAImEbL0MZ2LN3tm5h2gP3z2hy/MsJGFJSZbPl3PbYn99RN PQXgy/7JYbzbRsOTt6cSQ5W1EjyygnWkSJz5Vw/hCeHiyMO/XRnDbHh4FjG0sFJIfIGs bULqy6FCgBzTXhko37LJkHTFBPP1FrOM4nc/OC0nsKCQsEDFejSW1M4mDMPkit/xbs5H 0if6fTqNtJtxfDrzYtLLhTZpRdzgbXgZ1VnUbtiEr7uN2QPw7qklAWa6AzGXWScujtzw ltBiOvj2i8hC0iGldNexG65I9goFSsPqmd1w7AsoDxVg0ADM77WR8IWoSpo30NcOMDyd 0/dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mzDTfgE4MZGh7mt2oxUQ+s9zdha4Sbm2wovnQL9Qij0=; b=feMsl22NqbHeNfztdrrMe2GZSUZEfugmrRaEFTKIHKuShbG5cofrwoqMlsiUoJuX5m u2hui2CpQ3EeNQE3Go+Ca2HGz7pn6gWEU7n97cYkjH7gs/8/27Jvgs+f/Qj6DiDcmGgF eo8OgyxycPZ9qHSZV4hjH3mvZlE0S1TdE5SmNsByJm5CZF9DiBEXXK8G1l6allADtadV Y00GfOjdWP6pJOAEBqExeBzTFvtRHpxMZgZHQ2D0gK8sy9UoiaVnmn5RqzjPRQXM5nVc x0TIkE3vnwfyaQmCLgjxb5FAJ7c3H5Fkej58fk7/OQIkYFdJxyGKunqX7SnmbrPquZLE baig== X-Gm-Message-State: AKGB3mK7k7KgmRP6qOWf1vnWePZT4/bRl9arJksgJpP4wgtqtjwfoVPX TM4AMIuG4KJuUPkqy2VK/3/m26yAA18cmvA9gx8/4w== X-Google-Smtp-Source: ACJfBotctFxF+92G5SKNH7UDj3TuflImj0DSUaFVQT7aRNdq4yOGN3wnNDN0JKNxan25X0rtTXuQ/BUZYeJEmdytNiY= X-Received: by 10.107.24.198 with SMTP id 189mr6013368ioy.213.1513235705095; Wed, 13 Dec 2017 23:15:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.31 with HTTP; Wed, 13 Dec 2017 23:15:04 -0800 (PST) In-Reply-To: <2f54bb9d-b7e0-9f4a-b894-6d72c7470b24@freebsd.org> References: <2f54bb9d-b7e0-9f4a-b894-6d72c7470b24@freebsd.org> From: blubee blubeeme Date: Thu, 14 Dec 2017 15:15:04 +0800 Message-ID: Subject: Re: kernel names To: Allan Jude Cc: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 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: Thu, 14 Dec 2017 07:15:06 -0000 On Thu, Dec 14, 2017 at 1:51 PM, Allan Jude wrote: > On 12/14/2017 00:47, blubee blubeeme wrote: > > When you boot into FreeBSD and you can select kernels, there's only 2 > > options: > > default and kernel.old > > > > Is there a way to have better output and support multiple kernels without > > having to login to the system and running uname -v or something like > that? > > > > Would it be possible to add options for more kernels from that boot menu? > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@ > freebsd.org" > > > > The list is controlled by the /boot/loader.conf variable kernels= > which defaults to "kernel kernel.old" > > I have a patch almost ready to land that will search all subdirectories > of /boot for a file named 'kernel' and add the names of those > directories to the list, such that the list will basically be > autogenerated. > > It currently contains too much copy/pasted code, and I just need to > clean it up a bit: https://reviews.freebsd.org/D11886 > > It was originally designed as part of my contributions towards packaged > base, where pkg will keep the last N (default to 5 I think) kernel > packages you have installed around, incase an upgrade goes bad. > > This feature will work on any filesystem supported by the loader. > > -- > Allan Jude > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Allen, thanks for the great work. I'll test it out but I can't wait to have it merged in.