From owner-freebsd-stable@FreeBSD.ORG Sat Jan 20 00:44:42 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 0B2E316A404 for ; Sat, 20 Jan 2007 00:44:42 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id DA9D513C474 for ; Sat, 20 Jan 2007 00:44:41 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JC50087G62IE330@l-daemon> for freebsd-stable@freebsd.org; Fri, 19 Jan 2007 17:44:42 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd4mr1so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JC500IJG62GUNO0@pd4mr1so.prod.shaw.ca> for freebsd-stable@freebsd.org; Fri, 19 Jan 2007 17:44:42 -0700 (MST) Received: from hexahedron.daemonology.net ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JC50066O62GNT40@l-daemon> for freebsd-stable@freebsd.org; Fri, 19 Jan 2007 17:44:41 -0700 (MST) Received: (qmail 1132 invoked from network); Sat, 20 Jan 2007 00:44:38 +0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; Sat, 20 Jan 2007 00:44:38 +0000 Date: Fri, 19 Jan 2007 16:01:59 -0800 From: Colin Percival In-reply-to: <2cc028020701151839l6906640ai84eb887297b46451@mail.gmail.com> To: Brian King Message-id: <45B15BF7.8020507@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <2cc028020701151839l6906640ai84eb887297b46451@mail.gmail.com> User-Agent: Thunderbird 1.5.0.9 (X11/20061227) Cc: freebsd-stable@freebsd.org Subject: Re: 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: Sat, 20 Jan 2007 00:44:42 -0000 Brian King wrote: > 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. Oops. > # 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 Yeah, you're not supposed to do that. In fact, it never occurred to me that someone would do that, largely because the FreeBSD Update working directory (/usr/upgrade in this case) is normally /var/db/freebsd-update. But since people upgrading from FreeBSD 6.1 don't have FreeBSD Update installed as part of the base system (and thus don't have the "normal" working directory) I added the flag to tell FreeBSD Update to use a different directory instead. > Suggestion for the developer: either permit directory creation in > /usr/upgrade, or document that it's a no-no. It will be documented. :-) Thanks, Colin Percival