Date: Tue, 17 Jul 2001 23:50:01 -0700 (PDT) From: Peter Pentchev <roam@orbitel.bg> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/29043: Can't install configured kernel with 'make install' after the second time Message-ID: <200107180650.f6I6o1Y89613@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/29043; it has been noted by GNATS. From: Peter Pentchev <roam@orbitel.bg> To: Roger Allan <rallan@pobox.com> 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/<KERNEL-NAME>. 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=<my-new-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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107180650.f6I6o1Y89613>