Re: GUIDE step-by-step - FreeBSD-RELENG-upgrade + BUILDWORLD process, using CVSUP

2006-06-18 Thread Constantino Michailidis
On Sunday 18 June 2006 08:00, [EMAIL PROTECTED] wrote:
 Hanno Krusken wrote:
  Hi all,
  specially for the novice of you, please read carefully
  !!
 
  # make clean
 
  # make -j4 buildworld
 
  # make buildkernel KERNCONF=YOUR-KERNEL-FILE
 
  # make installkernel KERNCONF=YOUR-KERNEL-FILE
 
  # reboot
 
  Hanno Krusken
   

 make -j4 can cause many systems to fail

 The correct procedure is

 make buildworld
 make kernel KERNCONF=mykern
 mergemaster -p
 make installworld
 mergemaster

 regards Jason M

Thought I'd throw in my 2cents to the conversation.  I have a cheat-sheet I've 
created myself for this process.  Generally, the procedure is as described as 
above.  One issue is that the actual process can vary... there is more than 
one _correct_ procedure.  That being said, it may help a newbie to have 
_more_ detail than less.  Thus, I'll include my cheat sheet here too.  
Section 21.4 from the handbook should be the final authority ;-)

Note, following the procedure isn't difficult at all... what _is_ difficult is 
answering the questions 'mergemaster' asks correctly.  In reality, this 
usually isn't too difficult either, but can be intimidating for less 
experienced users.

The general rule of thumb for mergemaster is answer 'i' (install temporary 
version) for any file that you don't remember editing yourself - this usually 
means press 'd' (delete) when prompted to merge files like /etc/hosts or 
(possibly) /etc/printcap.  On a typically configured machine, you are 
instructing mergemaster to either install (95%) or delete (4%) the temporary 
file it's prompting about; the other 1% of the time a 'real' merge is 
necessary.  Ultimately, you need to use your head a bit during mergemaster.

Other than that, the only thing you need to understand is how to use cvsup.  
Enough already, here's my cheat-sheet:

UPDATING FREEBSD

cvsup standard-supfile  #i'm tracking stable
cd /usr/src

cat UPDATING#glance at it for quirks

make buildworld

make buildkernel KERNCONF=your_filename

make installkernel KERNCONF=your_filename

shutdown now#optional; allows you to skip to next 'cd' command

reboot  #into single user mode

fsck -p
mount -u /
mount -a -t ufs
swapon -a

adjkerntz -i#if cmos clock set to local time

cd /usr/src

#using mergemaster: usually just answer 'i'
#for every file sans 'hosts', 'printcap'
#and any other customized /etc files
#use your head

mergemaster -p  #merges new stuff needed by installworld

make installworld

mergemaster #merges all new stuff: /etc /var/ usr

reboot
cd /usr/obj

chflags -R noschg * #only if any files are immutable

rm -rf *#saves disk space and
#makes future updates easier but slower
#THIS HAPPENS IN /usr/obj
#LOL, BE CAREFUL TO INSURE THIS!!!

-- 
New systems generate new problems.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GUIDE step-by-step - FreeBSD-RELENG-upgrade + BUILDWORLD process, using CVSUP

2006-06-17 Thread talonz

Hanno Krusken wrote:

Hi all,
specially for the novice of you, please read carefully
!!

# make clean

# make -j4 buildworld

# make buildkernel KERNCONF=YOUR-KERNEL-FILE

# make installkernel KERNCONF=YOUR-KERNEL-FILE

# reboot

Hanno Krusken
  

make -j4 can cause many systems to fail

The correct procedure is

make buildworld
make kernel KERNCONF=mykern
mergemaster -p
make installworld
mergemaster

regards Jason M



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


GUIDE step-by-step - FreeBSD-RELENG-upgrade + BUILDWORLD process, using CVSUP

2006-06-16 Thread Hanno Krusken

Hi all,
specially for the novice of you, please read carefully
!!

OK, this is a the step-by-step GUIDE to do a
FreeBSD-RELENG-upgrade + BUILDWORLD process, using
CVSUP

I have seen a lot of buildworld questions, and even
more tips, on this news-group and now, finally I
provide my GUIDE for all FreeBSD-RELENG-X.xx,
builds, patches, ports-upgrades, in hope it will be
help full for any one who still has problems building
the system.. to make a BUILDWORLD as fast,
safe and easy as possible using the CVSUP way !
You will find your answer to most of your questions
below.
NOTE !!!
I only pull together and compress all the tips and
information's out of news-groups, BSD-handbook,
O'Reilly's publications and most my own try-and-error
experiences. Even if it seams not quite perfect for
some BSD-Gurus, but it happily dose the job for me,
highly customised kernel and 520-installed-ports in
one go, with out trouble.

I used this steps for years now on all
FreeBSD-releng-4.8, 4.9, 4.10, 4.11, 5.4, 5.5, 6.0 and
on all patch levels.
(well 4.x wont's it the old way, but 5.x and 6.x
sweeps flawless ahead)
Recently upgraded my Laptop from FreeBSD-5.4-p15 to
FreeBSD-5.5-p1 and a FreeBSD-6.0 with out any
problems,
it will work for FreeBSD-6.1 and above as
well promised ;o)

Usually CVSUP the source, fetch the distfiles and
e-mails in a pub with WiFi WLan down the road on my
Laptop, have a beer or two, compile, build, install
the rest on the way home and over night if needed.
No joke, I have no DSL, ISDN or phone at home but it
works sweet for me,
beer taste better than a phone bill ;o) and keeps my
system up-to-date as well.

Now to make it even more convenience to fetch it all,
using fastest_cvsup for the source is a treat, but
to keep it simple in this guide I'll only describe
the basic way. (at the end of this mail you'll find a
small script to CVSUP with fatetest_cvsup) any way
;o)

Over all, a buildworld or upgrade with this guide
will only work if your config files are OK before you
carry on to follow this guide: !!
Make sure the following files are looked over and work
sweet 
you'll run in to a lot of error messages, if not
crafted carefully to suit your machine!!
you have to tweak this files first, to match your
system, before you even can think about calling a
buildworld-step out of this guide !!!
build a customs kernel first and you get in to it.
If your machine boots up with your own kernel, give it
a go

/etc/make.conf
/usr/src/sys/i386/conf/YOUR-KERNEL-FILE
/etc/standard-supfile
/etc/ports-supfile

### STEP-BY-STEP the stupid way, but easy as that
1+2=3a or 1+2=3b  ;o)
###
### 1.) FETCHING SRC-SOURCE BY CVSUP, CLEANING SYSTEM
AND RUNNING BUILDWORLD !!
### 2.) BOOT UP IN SINGLE MODE, MERGEMASTER AND
INSTALLWORLD !!
### 3-a.) use for: RELEASE-PATCH-UPGRADE +
DAILY-PORTS-UPGRADE AND FINISH !!
### 3-b.) or use for: FULL-RELEASE-UPGRADE +
FULL-PORTS-UPGRADE AND FINISH !!
###
### BUILDWORLD PROCESS WITH CVSUP:
### guide for system upgrade:
### all action as root or su to root   ;o)
###--
### 1.) FETCHING SRC SOURCE BY CVSUP, CLEANING SYSTEM
AND RUNNING BUILDWORLD:

# cvsup -g -L 2 /etc/standard-supfile   ### (you need
to be online for this one to fetch the source)

# cd /usr/obj

# chflags -R noschg *

# rm -rf *

# cd /usr/src

# make clean

# make -j4 buildworld

# make buildkernel KERNCONF=YOUR-KERNEL-FILE

# make installkernel KERNCONF=YOUR-KERNEL-FILE

# reboot

###--
### 2.) BOOT UP IN SINGLE MODE, MERGEMASTER AND
INSTALLWORLD !!!

# hit the space-key if boot up delay counter starts
!!

# boot -s

# mount -a

# cd /usr/src

# mergemaster -p### pre-buildworld mode, only
essential files !

# make installworld

# cp -Rp /etc /etc.old

# mergemaster -cv   ### do all changes as needed, take
your time and think, redo every step if unsure !!! ...
or you can hack the files by hand 

# reboot

###---
### 3-a.) use FOR RELEASE-PATCH-UPGRADE,
DAILY-PORTS-UPGRADE AND FINISH !!
### BOOT UP IN NORMAL MODE, PORTS UPGRADE AND FINISH
!!!

### open a xterm if running in X11

# su

# Password:

# uname -a

# cd /usr/src

# make clean

# cvsup -g -L 2 /etc/ports-supfile   ### (you need to
be online for this one to fetch the ports
collection)

# cd /usr/ports

# make fetchindex   ### (or make index but takes
time)

# portupgrade -rRaF   ### (you need to be online for
this one to fetch the distfiles SKIP THIS STEP IF
PERMANENT ONLINE)

# portupgrade -rRa ### (you can go offline for
this one now)

### RESTART X11 and/or boot !!! FINISHED :o)

###---
### 3-b.) FOR FULL-RELEASE-UPGRADE, AND
FULL-PORTS-UPGRADE AND FINISH !!!
### (AFTER RELEASE UPGRADE) - after FreeBSD upgrade
from 5.4 to 5.x, 6.x or newer !!

# cvsup -g -L 2 /etc/ports-supfile   ### (you need to
be online for this one to fetch the ports
collection)

# cd /usr/ports

# make fetchindex   ### (or make index but takes
time