mergemaster.mtree modified locally issue?

Running Freebsd 8.2 and have been using freebsd-update since before version 8. No big problems before and now all of a sudden I'm getting this (freebsd-update fetch output along with uname -a to show kernel is default):

Code:
%freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 8.2-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download 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

No updates needed to update system to 8.2-RELEASE-p10.

WARNING: FreeBSD 8.2-RELEASE-p9 HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Tue Jul 31 20:00:00 EDT 2012
will not have been corrected.

Code:
%uname -a
FreeBSD myhost.com 8.2-RELEASE-p9 FreeBSD 8.2-RELEASE-p9 #0: Mon Jun 11 22:27:05 UTC 2012     [email]root@i386-builder.daemonology.net[/email]:/usr/obj/usr/src/sys/GENERIC  i386

When I run freebsd-update IDS it shows just about every file having the wrong signature. Any ideas how to get things working again?
 
I don't use a custom kernel. I'm just trying to get to 8.2-RELEASE-p10 but it complains about mergemaster.mtree. I've tried updating to 8.3 but i get prompted to manually edit every single file in /etc which I assume has something to do with the freebsd-update mergemaster error.
 
Run the following command:

[CMD=]# freebsd-update upgrade -r 8.3-RELEASE[/CMD]
 
One command all the process:

[CMD=]# cd /usr/src/ && mergemaster -p && make buildworld && make buildkernel KERNCONF=KERNNAME && make installkernel KERNCONF=KERNNAME && make installworld && mergemaster && shutdown -r +3[/CMD]
 
From reading that post I'm a bit confused though. I don't run a custom kernel, just the GENERIC. Why should I even need to build the kernel, as that will then make it custom?
 
So no clue on why all files in /etc are showing as changed during an update (and/or mergemaster.mtree is showing as modified when I haven't changed it)?
 
From mergemaster(8):
-U: Attempt to auto upgrade files that have not been user modified.This option can be dangerous when there are critical changes in the new versions that affect your running system.

-i: Automatically install any files that do not exist in the destination directory.

-P: Preserve files that you replace in /var/tmp/mergemaster/preserved-files-_date_, or another directory you specify in your mergemaster rc file.

Passing the -U argument to mergemaster will avoid you having to check each file separately. Other interesting options are -i and -P arguments. Next time, you can use this options to merge configurations:
Code:
$ mergemaster -iUP

Another way is to use /etc/mergemaster.rc, for example:

Code:
# Files to always avoid comparing (space separated)
IGNORE_FILES='/etc/crontab /etc/fstab /etc/group /etc/hosts /etc/inetd.conf 
/etc/make.conf /etc/master.passwd /etc/motd /etc/newsyslog.conf 
/etc/ntp.conf /etc/ntp.drift /etc/profile /etc/rc.conf /etc/resolv.conf 
/etc/services /etc/shells /etc/syslog.conf /etc/ssh/sshd_config 
/etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_rsa_key 
/etc/ssh/ssh_host_rsa_key.pub /etc/passwd /etc/rc.conf.local 
/etc/zfs/exports /etc//namedb/named.conf /etc/periodic.conf 
/etc/hosts.allow /etc/hosts /etc/pf.conf /etc/sysctl.conf /etc/make.conf 
/etc/src.conf /etc/mail/aliases /etc/mail/mailer.conf /etc/remote 
/etc/ppp/ppp.conf /etc/nsswitch.conf /etc/locate.rc'

Another example:
Code:
# Automatically install files that do not exist on the system already
AUTO_INSTALL=yes
 
# Automatically upgrade files that have not been user modified
AUTO_UPGRADE=yes
 
# Preserve files that you replace
PRESERVE_FILES=yes
PRESERVE_FILES_DIR=/var/tmp/mergemaster/preserved-files-`date +%y%m%d-%H%M%S`
 
Can anyone tell me what a freebsd8.2p9 version string should looks like(ex: # $FreeBSD: src/etc/ntp.conf,v 1.2.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $)?

That is what freebsd-update is complaining is different in every file. If I could change it to the right string, then it would update properly without me intervening in every single file.
 
esheesle said:
Can anyone tell me what a freebsd8.2p9 version string should looks like(ex: # $FreeBSD: src/etc/ntp.conf,v 1.2.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $)?

That is what freebsd-update is complaining is different in every file. If I could change it to the right string, then it would update properly without me intervening in every single file.

Set the variable UNAME_r in your environment, rebuild your kernel with a normal name or edit the script and replace all uses of uname -r with echo X.Y-RELEASE-pN in the normal form.

[CMD=]# setenv UNAME_r "8.2-RELEASE-p9"[/CMD]
 
Back
Top