From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 15 20:46:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D09116A4CE for ; Wed, 15 Dec 2004 20:46:52 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A44C43D46 for ; Wed, 15 Dec 2004 20:46:52 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 5BBCA512C2; Wed, 15 Dec 2004 12:46:51 -0800 (PST) Date: Wed, 15 Dec 2004 12:46:51 -0800 From: Kris Kennaway To: security@revolutionsp.com Message-ID: <20041215204651.GA83806@xor.obsecurity.org> References: <63390.81.84.175.77.1103132379.squirrel@81.84.175.77> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <63390.81.84.175.77.1103132379.squirrel@81.84.175.77> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org Subject: Re: 5.x system trying to boot /kernel ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 20:46:52 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 15, 2004 at 11:39:39AM -0600, security@revolutionsp.com wrote: > Hey, >=20 > After adding KDB, KDB_UNATTENDED and DDB, two of my 5.3-STABLE servers > never came back after a reboot. After talking to the datacenter, they > informed me these servers are trying to boot of /kernel and not > /boot/kernel/kernel .. >=20 > What might be causing this behaviour ? /kernel was 4.X and these servers > never knew what 4.X was. >=20 > This only happened after adding KDB, KDB_UNATTENDED and DDB to the kernel > config, I had recompiled the kernel before and it never tried to look > /kernel instead of /boot/kernel/kernel >=20 > # file /kernel > /kernel: cannot open (/kernel) > # file /boot/kernel/kernel > /boot/kernel/kernel: ELF 32-bit LSB executable, Intel 80386, version 1 > (FreeBSD), dynamically linked (uses shared libs), not stripped Old loader? Local configuration of loader or boot blocks? > I rebuilt a kernel on my FreeBSD home gateway (also 5.3-STABLE) and also > adding GDB, I didn't have this problem. >=20 > Is there any loader.conf variable which sets the kernel that should be > booted ? Yes, see the manpage. Kris --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBwKK7Wry0BWjoQKURAuSPAKDlVaxUdFOmhMO61+I4hdk0nFSBSACfaIx4 lhZo9AnKu84OXoRUDkeQQAY= =Zsk/ -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--