From owner-freebsd-pkgbase@freebsd.org Tue Sep 11 19:35:42 2018 Return-Path: Delivered-To: freebsd-pkgbase@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1BEC109B04F for ; Tue, 11 Sep 2018 19:35:42 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6617886B9F; Tue, 11 Sep 2018 19:35:42 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 1DE54D604; Tue, 11 Sep 2018 19:35:42 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f48.google.com with SMTP id z11-v6so21332411lff.9; Tue, 11 Sep 2018 12:35:42 -0700 (PDT) X-Gm-Message-State: APzg51CNNGvXXzmnTDlTuFVcUz7JhiXMyPG/sE/DfOnU2GkGmRRed5VE m0YHGbx2t6bayAbI5HLtjxejtEldS+crM0WFX3Y= X-Google-Smtp-Source: ANB0VdZlJcQM9B4qVmPvcwHQtGhigJmdeQ2MYuWY2v0JOhSsg2HPXc/o+HlAmSskKpcSg5WmCG2bL8kKRsxh9AsRV70= X-Received: by 2002:a19:ea52:: with SMTP id i79-v6mr15594473lfh.75.1536694540416; Tue, 11 Sep 2018 12:35:40 -0700 (PDT) MIME-Version: 1.0 References: <1536694085.2759965.1504668272.4564BA99@webmail.messagingengine.com> In-Reply-To: <1536694085.2759965.1504668272.4564BA99@webmail.messagingengine.com> From: Kyle Evans Date: Tue, 11 Sep 2018 14:35:28 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Proposal for making the kernel packages preserve old copies To: Brad Davis Cc: freebsd-pkgbase@freebsd.org, Allan Jude Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-pkgbase@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Packaging the FreeBSD base system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2018 19:35:42 -0000 On Tue, Sep 11, 2018 at 2:28 PM Brad Davis wrote: > > On Tue, Sep 11, 2018, at 9:58 AM, Guido Falsi wrote: > > Hi, > > > > I've finally cleaned up a local patch I've been using and sent it as a > > code review: > > > > https://reviews.freebsd.org/D17119 > > > > > > As stated in the subject this patch uses a deinstall script to make the > > kernel packages copy the kernel directory to kernel.old when > > deinstalling. This leaves a fallback kernel on the system when > > upgrading, which I find quite useful. > > > > I intentionally made it mimic the "make installkernel" behavior. > > > > I did not add any reviewers in the phabric review since I don't know wh= o > > I should ask, but I'd like to get some feedback about this. > > Hi Guido, > > Good idea, but there is a different plan in the works. Because potential= ly there is the desire to keep many kernels around. So we are going to nam= e all the kernels kernel.version and the loader I believe already knows how= to find them. Allan? Kyle? Do you know what the status is here? > lualoader supports a "kernels_autodetect" option. One can stuff kernels_autodetect=3D"YES" in loader.conf(5) and we'll enumerate all directories in /boot that contain a 'kernel' file and throw them in the kernel list. I'm still 50/50 on enabling kernels_autodetect by default due to systems where the I/O is just too heavy, but I suspect a lot of those cases might also bypass the loader menu and effectively not need to autodetect. Thanks, Kyle Evans