From owner-freebsd-current@FreeBSD.ORG Sat Aug 13 20:30:36 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 279591065670; Sat, 13 Aug 2011 20:30:36 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C0EE98FC08; Sat, 13 Aug 2011 20:30:35 +0000 (UTC) Received: by ywo32 with SMTP id 32so1928148ywo.13 for ; Sat, 13 Aug 2011 13:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:in-reply-to:mime-version:content-transfer-encoding :content-type:message-id:cc:x-mailer:from:subject:date:to; bh=BMqgGqujWAH3d1eDeN2Zxy4nCpkw7ymPhxoiuErjp1Y=; b=L3i5Bn5n4QKRjW2BU/zpr5KFtYrY+7dioIoAu/s3d0rm4snGDPdmThlqICvWl0Joxs YQu5KUF2N34wP7Z34Rd7KqL0UVE6FcE7cDrAafAFdU2bEg8HtqdZScLWR6Gk58vhXBvY bETSVmYwOTDKFGVAiNhiw88OhzIlMj783zyvg= Received: by 10.236.173.106 with SMTP id u70mr7370308yhl.238.1313267434957; Sat, 13 Aug 2011 13:30:34 -0700 (PDT) Received: from [10.19.151.101] ([166.205.139.224]) by mx.google.com with ESMTPS id k8sm1221471yhm.31.2011.08.13.13.30.30 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Aug 2011 13:30:34 -0700 (PDT) References: <20110813195127.GA34295@freebsd.org> <22EB0C13-A184-446F-A031-A2817CB3BE7D@gmail.com> <20110813201520.GA37846@freebsd.org> In-Reply-To: <20110813201520.GA37846@freebsd.org> Mime-Version: 1.0 (iPhone Mail 8L1) Message-Id: X-Mailer: iPhone Mail (8L1) From: Garrett Cooper Date: Sat, 13 Aug 2011 13:30:18 -0700 To: Alexander Best Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-current@freebsd.org" Subject: Re: [rfc] replacing /boot/kernel.old with a unique directory name 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: Sat, 13 Aug 2011 20:30:36 -0000 On Aug 13, 2011, at 1:15 PM, Alexander Best wrote: > On Sat Aug 13 11, Garrett Cooper wrote: >> On Aug 13, 2011, at 12:51 PM, Alexander Best wrote:= >>=20 >>> hi there, >>>=20 >>> i just had the following idea: how about instead of copying the current k= ernel >>> to /boot/kernel.old and then installing the new one under /boot/kernel a= s the >>> results of target installkernel, we create a unique directory name for t= he old >>> kernel? >>>=20 >>> something like /boot/kernel-r${revision}-${/dev/random}? >>>=20 >>> that would let people not only boot the previous kernel, but all kernels= that >>> have been replaced by target installkernel. this would make tracking iss= ues, >>> which have been introduced by a certain commit much easier, imho. >>>=20 >>> i don't think implementing this logic would be that difficult. the only p= roblem >>> i see is with ${/dev/random} in the case where people are running a kern= el >>> without /dev/{u}random support. >>=20 >> Why not just use INSTKERNNAME? >=20 > hmm...won't setting INSTKERNNAME set the path to where the new kernel will= be > installed and not where the current kernel will be backup'ed? It moves the old kernel to $INSTKERNNAME.old . That's usually good enough wh= en working with svn and multiple KERNCONFs. -Garrett=