Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2012 23:06:49 GMT
From:      Robert Lampe <rlampe@tqhosting.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/164834: freebsd-update(8) does not operate on mounted system
Message-ID:  <201202062306.q16N6nj7096953@red.freebsd.org>
Resent-Message-ID: <201202062310.q16NAAcR077704@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202062306.q16N6nj7096953>