is there a faster way than using mergemaster?

Installing and upgrading FreeBSD.

is there a faster way than using mergemaster?

Postby wonslung » 01 Oct 2009, 23:19

I set up a lot of servers lately with freebsd. The hosting company i use still doesn't offer freebsd 7.2 so i'm always upgrading the machines. I tend to download the sources and build it but the mergemaster step can take awhile, the only files i DONT use from the new root is /etc/group /etc/passwd /etc/master.passwd

I know this is a somewhat obvious question but i'd just like to make sure....is there any problem with just copying the stuff from /var/tmp?

Is using mergemaster REALLY that big of a deal for such an install?
wonslung
Member
 
Posts: 850
Joined: 07 May 2009, 00:15

Postby ale » 01 Oct 2009, 23:38

If you look in the mergemaster man page, you will find some options that could be useful for you.
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

Postby DutchDaemon » 01 Oct 2009, 23:41

See mergemaster suggestions in [file]/usr/src/Makefile[/file].
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby aragon » 02 Oct 2009, 00:24

Code: Select all
mv /etc /etc.old && cd /usr/src && make distribution DESTDIR=/
cd /etc.old && mv fstab resolv.conf rc.conf group passwd master.passwd /etc && pwd_mkdb /etc/master.passwd
aragon
Giant Locked
 
Posts: 2031
Joined: 16 Nov 2008, 17:04
Location: Cape Town, South Africa

Postby foo_daemon » 05 Oct 2009, 18:30

In particular, if you are frequently re-upgrading the same machine, you want to look at the "-U" option ('long' the first time; insanely faster all following times for non-major upgrades).

@Aragorn: s/mv/cp . I would rather have multiple copies lying around than only 1.
User avatar
foo_daemon
Junior Member
 
Posts: 37
Joined: 02 Mar 2009, 06:58
Location: Phoenix, Arizona (USA)

Postby ernie » 11 May 2010, 02:06

freebsd-update is great except when it forces you to run mergemaster. All of a sudden other OS's upgrade systems start to look a lot more friendly.

When I run freebsd-update, mergemaster seems to choke on understanding that the only line that has changed in a config file is the version number, it forces me to hand edit countless files just to update their version numbers, the body content hasn't changed. Is there some trick to making mergemaster behave a little smarter at this? When you have several servers to do, this adds up to many man hours wasted cause of mergemaster.
ernie
Junior Member
 
Posts: 29
Joined: 04 May 2009, 00:54

Postby crsd » 11 May 2010, 02:16

@ernie: It doesn't force you to use mergemaster...

I'd love to see [man="8"]freebsd-update[/man] use [man="8"]mergemaster[/man], even if it means I've to keep [file]/usr/src[/file].
crsd
Member
 
Posts: 420
Joined: 24 Nov 2008, 02:15
Location: Russia, Krasnodar

Postby aragon » 11 May 2010, 02:18

ernie wrote:it forces me to hand edit countless files just to update their version numbers

You should never need to hand edit with mergemaster. In the instances you describe, have you tried the (m)erge option from the menu that appears?
aragon
Giant Locked
 
Posts: 2031
Joined: 16 Nov 2008, 17:04
Location: Cape Town, South Africa

Postby lme@ » 11 May 2010, 06:32

You can also try etcupdate: http://people.freebsd.org/~jhb/etcupdate/
User avatar
lme@
 
Posts: 611
Joined: 08 Oct 2007, 19:42
Location: Düsseldorf, Germany

Postby vermaden » 11 May 2010, 06:39

@wonslung

[CMD=""]# mergemaster -p
# make installworld
# mergemaster -FiU[/CMD]
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2316
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz


Return to Installing & Upgrading

Who is online

Users browsing this forum: No registered users and 0 guests