From owner-cvs-all Sun Oct 21 0:18: 0 2001 Delivered-To: cvs-all@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 2092A37B401; Sun, 21 Oct 2001 00:17:55 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f9L7HsM23281; Sun, 21 Oct 2001 00:17:54 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id CF876380A; Sun, 21 Oct 2001 00:17:54 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Brian Somers Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf Makefile.i386 In-Reply-To: <200110171357.f9HDvX610060@freefall.freebsd.org> Date: Sun, 21 Oct 2001 00:17:54 -0700 From: Peter Wemm Message-Id: <20011021071754.CF876380A@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Brian Somers wrote: > brian 2001/10/17 06:57:32 PDT > > Modified files: > sys/conf Makefile.i386 > Log: > Change kern.bootfile when mv'ing the kernel This backs out part of rev 1.169, which was an intentional change.. This is incomplete.. what if it is the second 'make install'? What if sysctl isn't in $PATH? What if it is an old sysctl that needs the -w switch? There isn't an error trap to eat the error code, will this cause 'make installkernel' to fail? Hmm, it seems it does: peter@overcee[12:15am]/home/src/sys/i386/compile/OVERCEE-111# make install rm -rf /boot/kernel.old mv /boot/kernel /boot/kernel.old [ "`sysctl -n kern.bootfile`" != "/boot/kernel/kernel" ] || sysctl kern.bootfile=/boot/kernel.old/kernel sysctl: must use -w to modify variables *** Error code 1 Stop in /home/src/sys/i386/compile/OVERCEE. Nothing is supposed to be using this sysctl, it's purely informational these days, and even then it has only part of the story. The booted kernel may not even be reachable (eg: on an EFI filesystem or pulled in via tftp). Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message