[PLUG] can't recompile my FreeBSD kernel

Will Andrews Will Andrews <will@physics.purdue.edu>
Sun, 8 Apr 2001 02:14:40 -0500


--s2BgGqEnop8iZnuR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 08, 2001 at 02:07:54AM -0400, Vidyut Samanta (a.k.a vids) wrote:
> chflags noschg /kernel
> chflags: /kernel: Operation not permitted
> *** Error code 1 (ignored)
> mv /kernel /kernel.old
> mv: rename /kernel to /kernel.old: Operation not permitted   =20
>=20
> so I tried cp kernel to kernel.old and rm kernel but that didn't work
> either. Any idea why, or what I should do to fix this.

Do this:

sysctl kern.securelevel

If this number is greater than 0, you can't change the immutable or
append-only flags on any file.  See init(8) manpage for more information.

The only way to solve this problem is to boot to single-user mode,
install the kernel, then reboot again.  (While you're in single-user
mode you might want to consider turning off the securelevel feature,
because it's not really useful for anything besides a server.)

--=20
wca

--s2BgGqEnop8iZnuR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE60A/gF47idPgWcsURAg1dAJ9ewJRT5LVPfX2pqII99L3ks0JvewCcCgej
aRlGMPEJ3xt58iB57DVxrcU=
=OUoK
-----END PGP SIGNATURE-----

--s2BgGqEnop8iZnuR--