1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is there a faster way than using mergemaster?

Discussion in 'Installing and Upgrading FreeBSD' started by wonslung, Oct 2, 2009.

  1. wonslung

    wonslung New Member

    Messages:
    850
    Likes Received:
    0
    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?
     
  2. ale

    ale New Member

    Messages:
    1,059
    Likes Received:
    0
    If you look in the mergemaster man page, you will find some options that could be useful for you.
     
  3. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,644
    Likes Received:
    20
    See mergemaster suggestions in /usr/src/Makefile.
     
  4. aragon

    aragon New Member

    Messages:
    2,031
    Likes Received:
    0
    Code:
    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
    
     
  5. foo_daemon

    foo_daemon New Member

    Messages:
    39
    Likes Received:
    0
    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.
     
  6. ernie

    ernie New Member

    Messages:
    29
    Likes Received:
    0
    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.
     
  7. crsd

    crsd New Member

    Messages:
    420
    Likes Received:
    0
  8. aragon

    aragon New Member

    Messages:
    2,031
    Likes Received:
    0
    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?
     
  9. lme@

    lme@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    621
    Likes Received:
    8
  10. vermaden

    vermaden Member

    Messages:
    2,352
    Likes Received:
    0
    @wonslung

    # mergemaster -p
    # make installworld
    # mergemaster -FiU