From owner-freebsd-stable@FreeBSD.ORG Tue Apr 19 21:25:47 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C442616A4CE for ; Tue, 19 Apr 2005 21:25:47 +0000 (GMT) Received: from FS.denninger.net (wsip-68-15-213-52.at.at.cox.net [68.15.213.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF06C43D1F for ; Tue, 19 Apr 2005 21:25:46 +0000 (GMT) (envelope-from karl@FS.denninger.net) Received: from fs.denninger.net (localhost [127.0.0.1]) by FS.denninger.net (8.13.3/8.13.1) with SMTP id j3JLPkTd083610 for ; Tue, 19 Apr 2005 16:25:46 -0500 (CDT) (envelope-from karl@FS.denninger.net) Received: from fs.denninger.net [127.0.0.1] by Spamblock-sys; Tue Apr 19 16:25:46 2005 Received: (from karl@localhost) by FS.denninger.net (8.13.3/8.13.1/Submit) id j3JLPkaf083608; Tue, 19 Apr 2005 16:25:46 -0500 (CDT) (envelope-from karl) Message-ID: <20050419162546.A83584@denninger.net> Date: Tue, 19 Apr 2005 16:25:46 -0500 From: Karl Denninger To: Kent Stewart , freebsd-stable@freebsd.org References: <426447F8.5090209@charter.net> <20050419163237.76a99373.wmoran@potentialtech.com> <20050419203913.GB50313@dan.emsphone.com> <200504191402.04374.kstewart@owt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <200504191402.04374.kstewart@owt.com>; from Kent Stewart on Tue, Apr 19, 2005 at 02:02:04PM -0700 Organization: Karl's Sushi and Packet Smashers X-Die-Spammers: Spammers cheerfully broiled for supper and served with ketchup! cc: Dan Nelson cc: Bill Moran Subject: Re: Newbie Question About System Update X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 21:25:48 -0000 On Tue, Apr 19, 2005 at 02:02:04PM -0700, Kent Stewart wrote: > On Tuesday 19 April 2005 01:39 pm, Dan Nelson wrote: > > In the last episode (Apr 19), Bill Moran said: > > > Chuck Swiger wrote: > > > > Bill Moran wrote: > > > > > The system can not replace programs that are in use, > > > > > > > > This is generally not the case. Unix lets you continue to access > > > > a file after it has been deleted, so long as the process hangs on > > > > to a file descriptor. This lets you replace programs in use, > > > > without running into the same problems that platforms like > > > > Windows have. > > > > > > What you say?: > > > > > > bash-2.05b$ su > > > Password: > > > bolivia# cp /usr/sbin/cron /home/wmoran/. > > > bolivia# cp /home/wmoran/cron /usr/sbin/. > > > cp: /usr/sbin/./cron: Text file busy > > > bolivia# > > > > > > Notice that /usr/sbin/cron is in use (because my system is running > > > normally) I can copy _from_ that file, but I can not overwrite it. > > > > What you can do, however, is: create the new file under a temporary > > name, delete the original, and rename the temp file to the orignal's > > name, which is what /usr/bin/install does. I've done many > > installworlds on running systems without problems. > > You are forgetting that one of the real purposes of the boot -s is to > test your new kernel. If you have never been bitten by a kernel that > would only panic, you have no problems. If you have, you know that you > can boot the old kernel and continue without any problems until some > one solves the panic. You will not most likely hit that situation on a > security based version but this is freebsd-stable and it can happen at > any time. > > My attitude is that if you don't boot -s, you are simply playing > Russian-roulette with your system. Some day, it will bite you. > > Kent Not if your update procedure saves the old kernel. Yes, you will have to get there to recover. You have to get there (either physically or serial console) anyway if it blows up on you. The old kernel (and loadables for it) should ALWAYS be saved when updating "in place", lest you discover exactly what you're warning about the hard way. -- -- Karl Denninger (karl@denninger.net) Internet Consultant & Kids Rights Activist http://www.denninger.net My home on the net - links to everything I do! http://scubaforum.org Your UNCENSORED place to talk about DIVING! http://www.spamcuda.net SPAM FREE mailboxes - FREE FOR A LIMITED TIME! http://genesis3.blogspot.com Musings Of A Sentient Mind