Re: Build your own ISO-install-CD?

2007-03-19 Thread Ted Mittelstaedt

- Original Message - 
From: Ewald Jenisch [EMAIL PROTECTED]
To: Ted Mittelstaedt [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Friday, March 16, 2007 5:37 AM
Subject: Re: Build your own ISO-install-CD?



 On Fri, Mar 16, 2007 at 12:07:17AM -0800, Ted Mittelstaedt wrote:
 
  ...
 
  The process is long and complex.  You don't want to do it if you can
help
  it.
  If people beg me on this list I'll post the step by step I use but trust
me
  you
  really really don't want to do this unless absolutely necessary.

 Hi Ted,

 I suppose this might be of interest to others too, so maybe you could
 post your receipe here?

 
  Here is the easy way to fix this.
 
  1) Burn a CD with the new driver
 
  2) Boot off a regular install ISO and install your system plus kernel
  sources
 
  3) Mount the burned CD and copy the new driver to the kernel
  source location it is supposed to be at
 
  4) Recompile kernel and your in business.
 

 Nice shortcut-tip! :-) Guess copying the complete /usr/src via CD to
 the target machine would even be better given the lot of mods that
 went into the system and kernel since 6.2 has been released.


No, not really.  Once you get a working network driver you can cvsup
to -current if you want.  But I would not run a production server on that.

Ted

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


How to build an ISO Re: Build your own ISO-install-CD?

2007-03-19 Thread Ted Mittelstaedt

- Original Message - 
From: Ewald Jenisch [EMAIL PROTECTED]
To: Ted Mittelstaedt [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Friday, March 16, 2007 5:37 AM
Subject: Re: Build your own ISO-install-CD?



 On Fri, Mar 16, 2007 at 12:07:17AM -0800, Ted Mittelstaedt wrote:
 
  ...
 
  The process is long and complex.  You don't want to do it if you can
help
  it.
  If people beg me on this list I'll post the step by step I use but trust
me
  you
  really really don't want to do this unless absolutely necessary.

 Hi Ted,

 I suppose this might be of interest to others too, so maybe you could
 post your receipe here?


OK you asked for it.  Note this is -very rough- notes.  It is notes that you
use if you
understand the procedure, not what you use as an educational explanation.
You will
probably need to change directory locations for the various invocations.


 I did a boot from bootable CDROM then network install

setup filesystem :

root 2G
swap 1G
var  2G
usr  30G

home dirs will be in /usr/home

Select Kern-Developer, no Xwindows, no ports


After reboots, sysinstall and install cvsup-without-gui-16.1h_2 from the FTP
site

Also install a complete set of sources from the distribution media


8) Upgrade ports directories

cd /root

  c) cp /usr/share/examples/cvsup/ports-supfile .
  d) vi ports-supfile   change mirror name
 cvsup10.us.FreeBSD.org
  e) rehash
  f) cvsup -g -L 2 /root/ports-supfile
  g) Create the index with the command make index or
  g) Fetch the index with the command make fetchindex

now install cdrtools

  cd /usr/ports/sysutils/cdrtools
  make install


Recompile and rebuild the entire system to make sure it's clean:

cd /usr/src
make buildworld
make buildkernel
make installkernel

boot into single-user
boot -s
mount /
mount /tmp
mount all the rest of the system
cd /usr/src/usr.sbin/mergemaster
./mergemaster.sh -p  (say no to delete temproot)
cd /usr/src
make installworld
mergemaster
reboot

this results in a system that is a duplicate of the -release system if done
right

Now we start our updated builds:

NOTE:  These notes helped:
http://romana.now.ie/writing/customfreebsdiso.html

) setup a cvsupfile for the rest of the system:

e) cd /root cp ports-supfile release-supfile
vi release-supfile and change the bottom half to:

 IMPORTANT: Change the next line to use one of the CVSup mirror sites
# listed at http://www.freebsd.org/doc/handbook/mirrors.html.
*default host=cvsup10.us.FreeBSD.org
*default base=/var/db
*default prefix=/usr/home/ncvs
*default release=cvs  (make sure to remove the tag here)
*default delete use-rel-suffix

# If you seem to be limited by CPU rather than network or disk bandwidth,
try
# commenting out the following line.  (Normally, today's CPUs are fast
enough
# that you want to run compression.)
*default compress

# ports-all
src-all
doc-all
cvsroot-all
#

) init the cvs database:

cvs -d /usr/home/ncvs init

 populate our local cvs database with the command: cvsup -g
/root/release-supfile

Now we got a local CVS synced to the master repository.

Now, before we start tearing into the new stuff, let's create our old src
and /usr/obj into
a RELEASE by doing this:

Now we make a unmodded  release itself (takes about 3 hours):
cd /usr/src/release
make release RELEASETAG=RELENG_6_1 PORTSRELEASETAG=HEAD
BUILDNAME=6.1-RELEASE CHROOTDIR=/usr/home/releng NODOC=yes NOPORTS=yes CVSRO
OT=/usr/home/ncvs

This will put the files to stage for the bootable ISO into /home/releng/R
The kernel will go into /home/releng/R/cdrom/disc1/boot/kernel
This will also put the files for FTP installation in /home/releng/R/ftp
which must be used with the ISO image for
an FTP installation if the CD drive becomes inaccessible during
installation.

cd /usr/home
(makes it with no floppy emulation)
sh /usr/src/release/i386/mkisoimages.sh -b FreeBSD6
/usr/home/6.1-RELEASE-disc1.iso /usr/home/releng/R/cdrom/disc1

burn this CD and test it as a scratch install CD!

Now to make a release off the current source for the tree:

  Since a whole lot of stuff
has dependencies, we want to start by saving the existing RELEASE source
tree (we might need it to regenerate a kernel)
cd /usr
mv src src.original

Blow away old releases and such
To delete the release then chflags -R noschg /usr/home/releng rm -r
/usr/home/releng rm -r /usr/obj rm -r /usr/src

cvsup -g /root/release-supfile (resync the src)

Replace this with the current source we are working on:

cd /usr
cvs -d /usr/home/ncvs checkout src

Now, before building a release, must buildworld (don't have to install it
though)
cd /usr/src
make -j4 buildworld  (approx 1.6 hours on 1.8Ghz Athlon with Promise
FastTrack RAID chip with -j4 option)
(only do this to check the kernel builds, not needed for a make release)
make buildkernel KERNCONF=GENERIC
NOTE: this puts the CURRENT into /usr/obj

Now we make a unmodded current  release itself (takes about 3 hours):
add audit:*:77: to /etc/group
cd /usr/src/release
make release RELEASETAG

Re: Build your own ISO-install-CD?

2007-03-17 Thread Giorgos Keramidas
On 2007-03-16 14:37, Ewald Jenisch [EMAIL PROTECTED] wrote:
On Fri, Mar 16, 2007 at 12:07:17AM -0800, Ted Mittelstaedt wrote:
 The process is long and complex.  You don't want to do it if you can
 help it.  If people beg me on this list I'll post the step by step I
 use but trust me you really really don't want to do this unless
 absolutely necessary.

 Hi Ted,
 I suppose this might be of interest to others too, so maybe you could
 post your receipe here?

 Here is the easy way to fix this.

 1) Burn a CD with the new driver
 2) Boot off a regular install ISO and install your system plus kernel
 sources
 3) Mount the burned CD and copy the new driver to the kernel
 source location it is supposed to be at
 4) Recompile kernel and your in business.

 Nice shortcut-tip! :-) Guess copying the complete /usr/src via CD to
 the target machine would even be better given the lot of mods that
 went into the system and kernel since 6.2 has been released.

Ted is right that the process can take quite a while, and you have to be
careful not to miss steps along the way.  Please note, however, that
thanks to the help of past members of the RE team, large pargs of the
release engineering process of FreeBSD are documented in manpages like
release(7), build(7) and in articles like ``FreeBSD Release
Engineering''[1] and ``FreeBSD Release Engineering for Third Party
Software Packages''[2].

[1] http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/releng/
[2] http://www.FreeBSD.org/doc/en_US.ISO8859-1/articles/releng-packages/

Before you embark on a mission to make your own CD-ROM or DVD of
installable FreeBSD snapshots, it is a good idea to check out these
references.  They may be of help :-)

Regards,
Giorgos

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


Re: Build your own ISO-install-CD?

2007-03-16 Thread Ted Mittelstaedt

- Original Message - 
From: Ewald Jenisch [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Thursday, March 15, 2007 1:14 AM
Subject: Build your own ISO-install-CD?


 Hi,

 I need to build my own ISO-install-CD for FreeBSD 6.2. Is this
 possible (given an up-to-date /usr/src tree)?


Yes

 If yes, how?


The process is long and complex.  You don't want to do it if you can help
it.
If people beg me on this list I'll post the step by step I use but trust me
you
really really don't want to do this unless absolutely necessary.

 Will this process build build a mini-CD or a full Disc1?


all install disks, plus the mini, depending on what options you set.

 Can this home-brewn install-CD be used instead of the Disc1 of the
 6.2 CD-set when installing a machine from scratch?


yes

 Will it prompt for the second CD containing the various
 packages?


it is the same as the distributed install cd so yes.

 Thanks in advance for any clue,
 -ewald

 PS: Just for explanation: The original 6.2 install-CDs don't support a
 specific NIC I've got in my blade-systems. A new-version of the
 corresponding driver has already been submitted though.

Here is the easy way to fix this.

1) Burn a CD with the new driver

2) Boot off a regular install ISO and install your system plus kernel
sources

3) Mount the burned CD and copy the new driver to the kernel
source location it is supposed to be at

4) Recompile kernel and your in business.

Way, way, way easier than making a custom cd

Ted

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


Re: Build your own ISO-install-CD?

2007-03-16 Thread Ewald Jenisch

On Fri, Mar 16, 2007 at 12:07:17AM -0800, Ted Mittelstaedt wrote:

 ...
 
 The process is long and complex.  You don't want to do it if you can help
 it.
 If people beg me on this list I'll post the step by step I use but trust me
 you
 really really don't want to do this unless absolutely necessary.

Hi Ted,

I suppose this might be of interest to others too, so maybe you could
post your receipe here?

 
 Here is the easy way to fix this.
 
 1) Burn a CD with the new driver
 
 2) Boot off a regular install ISO and install your system plus kernel
 sources
 
 3) Mount the burned CD and copy the new driver to the kernel
 source location it is supposed to be at
 
 4) Recompile kernel and your in business.
 

Nice shortcut-tip! :-) Guess copying the complete /usr/src via CD to
the target machine would even be better given the lot of mods that
went into the system and kernel since 6.2 has been released.

Thanks for your hints!
-ewald

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


Re: Build your own ISO-install-CD?

2007-03-16 Thread Ewald Jenisch
On Fri, Mar 16, 2007 at 12:07:17AM -0800, Ted Mittelstaedt wrote:

 ...
 
 The process is long and complex.  You don't want to do it if you can help
 it.
 If people beg me on this list I'll post the step by step I use but trust me
 you
 really really don't want to do this unless absolutely necessary.

Hi Ted,

I suppose this might be of interest to others too, so maybe you could
post your receipe here?

 
 Here is the easy way to fix this.
 
 1) Burn a CD with the new driver
 
 2) Boot off a regular install ISO and install your system plus kernel
 sources
 
 3) Mount the burned CD and copy the new driver to the kernel
 source location it is supposed to be at
 
 4) Recompile kernel and your in business.
 

Nice shortcut-tip! :-) Guess copying the complete /usr/src via CD to
the target machine would even be better given the lot of mods that
went into the system and kernel since 6.2 has been released.

Thanks for your hints!
-ewald

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


Build your own ISO-install-CD?

2007-03-15 Thread Ewald Jenisch
Hi,

I need to build my own ISO-install-CD for FreeBSD 6.2. Is this
possible (given an up-to-date /usr/src tree)? 

If yes, how?

Will this process build build a mini-CD or a full Disc1?

Can this home-brewn install-CD be used instead of the Disc1 of the
6.2 CD-set when installing a machine from scratch?

Will it prompt for the second CD containing the various
packages?

Thanks in advance for any clue,
-ewald

PS: Just for explanation: The original 6.2 install-CDs don't support a
specific NIC I've got in my blade-systems. A new-version of the
corresponding driver has already been submitted though. In order to
avoid the chicken-and-egg-problem (i.e. can't update the source
since the machine can't connect to the net when installed via the
original 6.2 CDs) I thought about building a custom 6.2 CD install set
from a machine that has up-to-date 6.2 sources.


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


Re: Build your own ISO-install-CD?

2007-03-15 Thread Derek Ragona

Just download the disk1 iso image then use nero or cdcreator to burn the CD.

-Derek


At 04:14 AM 3/15/2007, Ewald Jenisch wrote:

Hi,

I need to build my own ISO-install-CD for FreeBSD 6.2. Is this
possible (given an up-to-date /usr/src tree)?

If yes, how?

Will this process build build a mini-CD or a full Disc1?

Can this home-brewn install-CD be used instead of the Disc1 of the
6.2 CD-set when installing a machine from scratch?

Will it prompt for the second CD containing the various
packages?

Thanks in advance for any clue,
-ewald

PS: Just for explanation: The original 6.2 install-CDs don't support a
specific NIC I've got in my blade-systems. A new-version of the
corresponding driver has already been submitted though. In order to
avoid the chicken-and-egg-problem (i.e. can't update the source
since the machine can't connect to the net when installed via the
original 6.2 CDs) I thought about building a custom 6.2 CD install set
from a machine that has up-to-date 6.2 sources.


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Build your own ISO-install-CD?

2007-03-15 Thread cpghost
On Thu, Mar 15, 2007 at 04:22:36AM -0500, Derek Ragona wrote:
 Just download the disk1 iso image then use nero or cdcreator to burn the CD.

Please don't top-post.

He meant the command to create the iso image. Something like
'make release' or so...

 -Derek
 
 
 At 04:14 AM 3/15/2007, Ewald Jenisch wrote:
 Hi,
 
 I need to build my own ISO-install-CD for FreeBSD 6.2. Is this
 possible (given an up-to-date /usr/src tree)?
 
 If yes, how?
 
 Will this process build build a mini-CD or a full Disc1?
 
 Can this home-brewn install-CD be used instead of the Disc1 of the
 6.2 CD-set when installing a machine from scratch?
 
 Will it prompt for the second CD containing the various
 packages?
 
 Thanks in advance for any clue,
 -ewald
 
 PS: Just for explanation: The original 6.2 install-CDs don't support a
 specific NIC I've got in my blade-systems. A new-version of the
 corresponding driver has already been submitted though. In order to
 avoid the chicken-and-egg-problem (i.e. can't update the source
 since the machine can't connect to the net when installed via the
 original 6.2 CDs) I thought about building a custom 6.2 CD install set
 from a machine that has up-to-date 6.2 sources.

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Build your own ISO-install-CD?

2007-03-15 Thread Ewald Jenisch
On Thu, Mar 15, 2007 at 10:27:02AM +0100, cpghost wrote:
 
 He meant the command to create the iso image. Something like
 'make release' or so...
 

Hi,

Yes you're right - the question is about how to create a *custom*
ISO-image. I've already tried the following:

cd /usr/src
# make release -DMAKE_ISOS
`release' is up to date.
#

yet, no .iso-files to find :-(

I also came across /usr/src/release/i386/mkisoimages.sh
It needs the following params: 
mkisoimages.sh [-b] image-label image-name base-bits-dir [extra-bits-dir]

Where is base-bits-dir supposed to be?

-ewald



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


Re: Build your own ISO-install-CD?

2007-03-15 Thread James Anderson

On 3/15/07, Ewald Jenisch [EMAIL PROTECTED] wrote:

Yes you're right - the question is about how to create a *custom*
ISO-image.


I tried to find something about this in the FreeBSD docs, but I didn't
look very hard:

http://romana.now.ie/writing/customfreebsdiso.html


From the article:



I needed to install FreeBSD on a system (a Dell PowerEdge 400SC) with
an LSILogic 1030 Ultra4 SCSI adapter. At that time support for this
device was only available with an mpt driver patch that hadn't yet
made it into FreeBSD. I needed to make install media that incorporated
the mpt patch.


It's for a different driver patch, not sure if it will work as I
haven't tried it myself, and again it's not the FreeBSD docs, but
hopefully it will help a bit.


cd /usr/src
# make release -DMAKE_ISOS
`release' is up to date.
#

yet, no .iso-files to find :-(

I also came across /usr/src/release/i386/mkisoimages.sh


The link I found was googled with mkisoimages.sh as the query
string.  Most of the results were from CVS check-ins, but if you want
to search for more documentation, searching for things that mention
that file could be a good start.


It needs the following params:
mkisoimages.sh [-b] image-label image-name base-bits-dir [extra-bits-dir]

Where is base-bits-dir supposed to be?

-ewald


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


Re: Build your own ISO-install-CD?

2007-03-15 Thread Kevin Kinsey

Ewald Jenisch wrote:

Hi,

I need to build my own ISO-install-CD for FreeBSD 6.2. Is this
possible (given an up-to-date /usr/src tree)? 


IIRC, you actually need a CVS tree outside of /usr/src, unless your 
/usr/src is actually a repo copy of the CVS tree.  It's been a while, so 
maybe I'm wrong on that.



If yes, how?


I did this once, back after 6.0, for the experience as much as anything 
I can remember now.  I don't seem to find any notes, however.


release(7) is the canonical reference, and you should be able to do this 
after a fairly thorough study of same.



Will this process build build a mini-CD or a full Disc1?


It depends on what you tell it to do.  If MAKE_ISOS is defined, you will 
get all of the ISO's that are built with any standard release.  I don't 
know if there are any variables to control *which* of the ISO's might be 
omitted, etc.  I'm thinking maybe not, but IANAE.



Can this home-brewn install-CD be used instead of the Disc1 of the
6.2 CD-set when installing a machine from scratch?


I don't see why not, as that is what it is designed for.  We used 
OurCompany-6.0-RELEASE on a few servers back then.



Will it prompt for the second CD containing the various
packages?


It should behave as any other of the FBSD CDs, providing you follow the 
instructions and burn the CD correctly.



Thanks in advance for any clue,
-ewald

PS: Just for explanation: The original 6.2 install-CDs don't support a
specific NIC I've got in my blade-systems. A new-version of the
corresponding driver has already been submitted though. In order to
avoid the chicken-and-egg-problem (i.e. can't update the source
since the machine can't connect to the net when installed via the
original 6.2 CDs) I thought about building a custom 6.2 CD install set
from a machine that has up-to-date 6.2 sources.


A good reason to give it a try, I suppose.  The Friendly manual is what 
you need, plus a bit of time for reading/planning and a fairly fast 
build machine --- or a *lot* of time on a slower box.  Happy release(7)-ing!


Kevin Kinsey
--
1 + 1 = 3, for large values of 1.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Build your own ISO-install-CD?

2007-03-15 Thread Kevin Kinsey

Ewald Jenisch wrote:

On Thu, Mar 15, 2007 at 10:27:02AM +0100, cpghost wrote:

He meant the command to create the iso image. Something like
'make release' or so...



Hi,

Yes you're right - the question is about how to create a *custom*
ISO-image. I've already tried the following:

cd /usr/src
# make release -DMAKE_ISOS
`release' is up to date.
#


I believe you're in the wrong WD.  Check release(7).


yet, no .iso-files to find :-(

I also came across /usr/src/release/i386/mkisoimages.sh
It needs the following params: 
mkisoimages.sh [-b] image-label image-name base-bits-dir [extra-bits-dir]


Where is base-bits-dir supposed to be?


I dunno, 'cause in using 'make release' that script is used by make 
instead of us humans ... ;-)


KDK
--
The great nations have always acted like gangsters and the small nations
like prostitutes.
-- Stanley Kubrick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]