From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 6 23:10:10 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBABB1065670 for ; Mon, 6 Feb 2012 23:10:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 87AB98FC08 for ; Mon, 6 Feb 2012 23:10:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q16NAAs1077705 for ; Mon, 6 Feb 2012 23:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q16NAAcR077704; Mon, 6 Feb 2012 23:10:10 GMT (envelope-from gnats) Resent-Date: Mon, 6 Feb 2012 23:10:10 GMT Resent-Message-Id: <201202062310.q16NAAcR077704@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Lampe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F0C6A1065670 for ; Mon, 6 Feb 2012 23:06:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C16E28FC14 for ; Mon, 6 Feb 2012 23:06:49 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q16N6nRK096954 for ; Mon, 6 Feb 2012 23:06:49 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q16N6nj7096953; Mon, 6 Feb 2012 23:06:49 GMT (envelope-from nobody) Message-Id: <201202062306.q16N6nj7096953@red.freebsd.org> Date: Mon, 6 Feb 2012 23:06:49 GMT From: Robert Lampe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/164834: freebsd-update(8) does not operate on mounted system X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 23:10:10 -0000 >Number: 164834 >Category: misc >Synopsis: freebsd-update(8) does not operate on mounted system >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 06 23:10:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Robert Lampe >Release: 8.2-RELEASE >Organization: RootBSD >Environment: FreeBSD qb21 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: I am trying to run freebsd-update on different versions of FreeBSD (mostly 8.2 and 9.0) from a 8.2 LiveFS. I mount / of the system I want to run freebsd-update on under /tmp/mnt. It still, however, seems to want to update the LiveFS. When we run freebsd-update with -b, -d, and -f, it still wants to update the LiveFS which we is read only except for /tmp. Output when the mounted system is 9.0-RELEASE: # uname -a FreeBSD qb21 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 # freebsd-update -b /tmp/mnt -d /tmp/mnt/var/db/freebsd-update -f /tmp/mnt/etc/freebsd-update.conf fetch Looking up update.FreeBSD.org mirrors... 4 mirrors found. Fetching metadata signature for 8.2-RELEASE from update4.FreeBSD.org... done. Fetching metadata index... done. Fetching 2 metadata patches.. done. Applying metadata patches... done. Inspecting system... done. Preparing to download files... done. Fetching 356 files... done. The following files are affected by updates, but no changes have been downloaded because the files have been modified locally: /var/db/mergemaster.mtree The following files will be added as part of updating to 8.2-RELEASE-p6: /usr/src/lib/libc/gen/libc_dlopen.c The following files will be updated as part of updating to 8.2-RELEASE-p6: /bin/chmod /bin/csh /bin/ed /bin/ls ... # freebsd-update -b /tmp/mnt -d /tmp/mnt/var/db/freebsd-update -f /tmp/mnt/etc/freebsd-update.conf install # head -1 /tmp/mnt/etc/freebsd-update.conf # $FreeBSD: release/9.0.0/etc/freebsd-update.conf 196392 2009-08-19 20:47:31Z simon $ Installing updates...mkdir: /boot/kernel.old: Read-only file system mtree: /boot/kernel.old: No such file or directory touch: /boot/kernel.old/.freebsd-update: No such file or directory Could not create kernel backup directory >How-To-Repeat: (Assume the root filesystem that we want to update is on /dev/ad0p2) 1. Boot into 8.2-RELEASE LiveFS 2. Mount /dev/ad0p2 to /tmp/mnt 3. # freebsd-update -b /tmp/mnt -d /tmp/mnt/var/db/freebsd-update -f /tmp/mnt/etc/freebsd-update.conf fetch See above for output. >Fix: >Release-Note: >Audit-Trail: >Unformatted: