From owner-freebsd-stable@FreeBSD.ORG Tue Jan 16 03:05:47 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E523B16A407 for ; Tue, 16 Jan 2007 03:05:47 +0000 (UTC) (envelope-from free.as.in.speech@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id 6881F13C474 for ; Tue, 16 Jan 2007 03:05:47 +0000 (UTC) (envelope-from free.as.in.speech@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1854443wxc for ; Mon, 15 Jan 2007 19:05:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FLyDHEjVzmH1vhx/kvDoNxk/pOUOGqoThBrwaDxhXLpAJPll0DO4MH3T3+XyyqCmwQwFY9nQrJehHhWqR3xqFft2uMuc/CUgrrcbLKiYHMe/lgqmgGC3cleeTox6MbEUzXwC8+bkbOe0Y5MrzLYqTROFOugt3QbewHyDeLWcT3g= Received: by 10.70.91.11 with SMTP id o11mr9326848wxb.1168915188250; Mon, 15 Jan 2007 18:39:48 -0800 (PST) Received: by 10.70.49.1 with HTTP; Mon, 15 Jan 2007 18:39:48 -0800 (PST) Message-ID: <2cc028020701151839l6906640ai84eb887297b46451@mail.gmail.com> Date: Tue, 16 Jan 2007 03:39:48 +0100 From: "Brian King" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: freebsd-update from 6.1 RELEASE to 6.2 RELEASE: directory creation caused failure. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 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, 16 Jan 2007 03:05:48 -0000 I'm writing this email from a freebsd 6.2 system, but it was a rocky upgrade for me. I followed the process outlined at http://www.daemonology.net/blog/2006-11-26-freebsd-6.1-to-6.2-binary-upgrade.html to upgrade my GENERIC i386 kernel and userland. I had changed some configuration files, and when notified about it, i created a directory /usr/upgrade/newfiles and downloaded the appropriate copies of these files from the cvs into this directory. And it seems that that was what caused my problems. Everything seemed to being going OK, until near the end: # sh freebsd-update.sh -f freebsd-update.conf -d /usr/upgrade install Installing updates...freebsd-update.sh: cannot create newfiles: Is a directory rm: newfiles: is a directory Well, I wasn't sure if it that was just a warning, or an error. I was optimistic and thought the script had probably successfully finished. I rebooted my computer ( triple-boot freebsd-linux-windows ), and selected freebsd from the grub menu. And that's when I saw: No /boot/loader Indeed. There was no /boot/loader file. There was a /boot/loader.old file (I'm not sure if this .old file is from freebsd-update, or if it's something I left behind once upon a time). I was able to work around it by burning a cd of disc 1 of the 6.2 release, and running the cd/dvd fix-it shell. I made a backup copy of my /boot directory, copied the cd's /boot directory in, and then copied back my original loader.conf file. After successfully booting into freebsd again, I reran the script: # sh freebsd-update.sh -f freebsd-update.conf -d /usr/upgrade install Installing updates...freebsd-update.sh: cannot create newfiles: Is a directory rm: newfiles: is a directory Hmmm ... same thing. OK, I can take a hint. I removed the /usr/upgrade/newfiles directory and reran the script, which completed succesfully, and prompted me to reboot and re-run the script, which I did. The userland update also finished successfully. Despite the problem that I had, I can see that freebsd-update is a great tool; kudos to the developer! Suggestion for the developer: either permit directory creation in /usr/upgrade, or document that it's a no-no. Brian