From owner-freebsd-hackers Wed Dec 4 0:44:10 2002 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 70E4037B401 for ; Wed, 4 Dec 2002 00:44:08 -0800 (PST) Received: from straylight.ringlet.net (office.sbnd.net [217.75.140.130]) by mx1.FreeBSD.org (Postfix) with SMTP id 07B5443ECD for ; Wed, 4 Dec 2002 00:44:05 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 67883 invoked by uid 1000); 4 Dec 2002 08:43:37 -0000 Date: Wed, 4 Dec 2002 10:43:37 +0200 From: Peter Pentchev To: Nate Lawson Cc: Rashim Gupta , freebsd-hackers@freebsd.org Subject: Re: booting multiple kernels Message-ID: <20021204084337.GN365@straylight.oblivion.bg> Mail-Followup-To: Nate Lawson , Rashim Gupta , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="95CBLwa+io9O2zXc" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --95CBLwa+io9O2zXc Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 03, 2002 at 08:52:07PM -0800, Nate Lawson wrote: > On Tue, 3 Dec 2002, Rashim Gupta wrote: > > I have a machine to which I remotely log in and do > > kernel programming. It has two kernel versions - one is WORKING and the > > other is TEST - the one I am presently working on. Is it possible that > > the bootloader tries to first load TEST but in case TEST panics then > > it loads the WORKING version of kernel without user intervention ? My > > initial guess would be to use loader scripts. Any suggestions? >=20 > man 8 reboot, esp. -k option. Errr... if I'm reading the original message right, then reboot -k is exactly the opposite of what Rashim is asking for - if the wording of the -stable manual page is correct. According to the manual page, if we try reboot -k TEST, and it fails, the system will keep trying to boot TEST until somebody walks up to the machine and manually changes the booted kernel by interrupting the loader. I believe this is not quite what Rashim asked for... G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 =2Esiht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI --95CBLwa+io9O2zXc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE97cA57Ri2jRYZRVMRAkb9AJ943eGzIZHq/ywewcvltBubDYuFHwCfaHM6 oX6uv7g5OdgQy99Fy7Z+woI= =V9Hg -----END PGP SIGNATURE----- --95CBLwa+io9O2zXc-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message