From owner-freebsd-jail@FreeBSD.ORG Thu Oct 8 18:37:42 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A69F7106568B for ; Thu, 8 Oct 2009 18:37:42 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from mail.anduin.net (mail.anduin.net [213.225.74.249]) by mx1.freebsd.org (Postfix) with ESMTP id 67DB88FC19 for ; Thu, 8 Oct 2009 18:37:42 +0000 (UTC) Received: from [212.62.248.148] (helo=[192.168.2.172]) by mail.anduin.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1Mvxrw-0003dx-Uj; Thu, 08 Oct 2009 20:37:41 +0200 Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes From: =?iso-8859-1?Q?Eirik_=D8verby?= In-Reply-To: <4ACE2829.6030804@optiksecurite.com> Date: Thu, 8 Oct 2009 20:37:40 +0200 Content-Transfer-Encoding: 7bit Message-Id: <295A1256-A620-4DD1-8B7F-22BDB216D164@anduin.net> References: <4ACE2829.6030804@optiksecurite.com> To: Martin Turgeon X-Mailer: Apple Mail (2.1076) Cc: freebsd-jail@freebsd.org Subject: Re: Can't upgrade jails to 8.0 using freebsd-update X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2009 18:37:42 -0000 On 8. okt. 2009, at 19.58, Martin Turgeon wrote: > Hi everyone! > > I just upgraded a 7.2-REL to 8.0RC1 using freebsd-update. The upgrade > went fine on the base system following the procedure written in the > announcement email by Ken Smith. My problem is when I try to upgrade > my > jails, I get this message: > > # freebsd-update -b /usr/jail/mysql/ fetch install > Looking up update.FreeBSD.org mirrors... 3 mirrors found. > Fetching metadata signature for 8.0-RC1 from update5.FreeBSD.org... > done. > Fetching metadata index... done. > Inspecting system... done. > Preparing to download files... done. > > No updates needed to update system to 8.0-RC1-p0. > No updates are available to install. > Run '/usr/sbin/freebsd-update fetch' first. > > But, if I compare the dates of the files in the base system to the > files > in the jails, it's obvious that the jails are not up to date. > > It seems like freebsd-update doesn't care about the basedir I > specified. It does, but if you do a 'uname -a' - inside or outside the jail - you'll see that it reports the OS revision of the host. So you should have updated your jails first, then the host ... One way to get around it is to replace /usr/bin/uname with a shell script, which calls the original uname (which you have renamed) and pipes through something like sed to replace the revision with what you used to have: #!/bin/sh /usr/bin/uname.org $* | sed s/"8.0-RC1-p0"/"7.2-RELEASE_p3"/g And this is a seriously butt ugly hack. /Eirik > Thanks a lot for your help, > > Martin > > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail- > unsubscribe@freebsd.org" >