From owner-freebsd-bugs Tue Jul 17 23:50: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 01DC837B405 for ; Tue, 17 Jul 2001 23:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6I6o1Y89613; Tue, 17 Jul 2001 23:50:01 -0700 (PDT) (envelope-from gnats) Date: Tue, 17 Jul 2001 23:50:01 -0700 (PDT) Message-Id: <200107180650.f6I6o1Y89613@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: conf/29043: Can't install configured kernel with 'make install' after the second time Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/29043; it has been noted by GNATS. From: Peter Pentchev To: Roger Allan Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: conf/29043: Can't install configured kernel with 'make install' after the second time Date: Wed, 18 Jul 2001 09:48:32 +0300 On Tue, Jul 17, 2001 at 10:00:36AM -0700, Roger Allan wrote: > > >Number: 29043 > >Category: conf > >Synopsis: Can't install configured kernel with 'make install' after the second time > >Organization: > >Environment: > FreeBSD roobar.jmorph.com 4.3-RELEASE FreeBSD 4.3-RELEASE #1: Tu Jul 17 23:26:41 CDT 2001 root@roobar.jmorph.com:/usr/src/sys/compile/ROOBAR i386 > >Description: > I reconfigured the kernel and installed it using "make isntall" > (from usr/src/sys/compile/ROOBAR). I reconfigured the kernel a second > time and got from the make command a: > chflags: /kernel: Operation not permitted > I tried all sorts of commands and variations of chflags, ch*, rm, mv, > etc and with no success. > There appears to be no way to remove a broken kernel from the system. > > >How-To-Repeat: > configure a new kernel and build twice with a 'make install' from > /usr/src/sys/compile/. As install sets the schg flag on > the kernel and is unable to undo it. > >Fix: > 'chflags noschg /kernel' is not working at all. Either avoid using the > "make install" or edit the makefile and remove the '-fschg' from the > install commands. If this is too late, edit the /boot/loader.conf and > add the line: "kernel=". Are you running in a securelevel 1 or higher? The init(8) manual page (which is also brought up when you do 'man securelevel') clearly documents that at securelevel 1, immutable flags cannot be turned off. Try dropping to single-user mode, and doing chflags noschg /kernel, then follow up to this PR (by sending mail to freebsd-gnats-submit@FreeBSD.org with the same Subject line) with the results: did chflags(1) give an error message, did ls -lo /kernel after the chflags still show an schg flag, how did the 'make install' process go.. G'luck, Peter -- When you are not looking at it, this sentence is in Spanish. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message