RE: Custom ISO Howto

"Jeff Coleman" <[email protected]> Fri, 12 Dec 2003 12:46:56 -0700
Newsgroups gmane.network.e-smith.devel
Message-ID <[email protected]>
Graeme,
 
You are the man.  This works like a charm.
 
-jeff


________________________________

	From: Graeme Seaton [mailto:[email protected]] 
	Sent: Friday, December 12, 2003 12:26 PM
	To: [email protected]
	Cc: Jeff Coleman; 'Greg Zartman'
	Subject: Re: [e-smith-devinfo] Custom ISO Howto
	
	
	Hi,
	
	I've modified Darrell's script to the following which allows me to
rebuild 6.0 iso's here.
	
	
	#!/bin/sh
	# useage = ./buildiso 
	# Example: ./buildiso
	
	DESTINATION=/home/ultracat/e-smith/
	CDDIR=cdrom
	BUILDROOT=$DESTINATION/$CDDIR
	TODAY=`(set \`date +%Y%m%d\`; echo $1)`
	BASENAME=$DESTINATION/$CDDIR-$TODAY
	
	# remove any previous destination files
	/bin/rm -f $DESTINATION/$CDDIR-$TODAY.*
	find cdrom -name TRANS.TBL -exec rm -f {} \;
	
	# create a rpm list for this build and save to destination
	/bin/ls -1 $BUILDROOT/e-smith/RPMS > $BASENAME.list
	
	# generate the initial hdlist file for the pgkorder script to use
	/usr/lib/anaconda-runtime/genhdlist $BUILDROOT
	
	# generate the pkgorder file
	/usr/lib/anaconda-runtime/pkgorder $BUILDROOT i386 >
$BASENAME.pkgorder
	
	# copy the pkgorder file to destination
	#/bin/cp $BUILDROOT/RedHat/base/pkgorder $BASENAME.pkgorder
	/bin/cp $BASENAME.pkgorder $BUILDROOT/RedHat/base/pkgorder
	
	# Rebuild the installer
	# /usr/lib/anaconda-runtime/buildinstall --pkgorder
$DESTINATION/$CDDIR-$TODAY.pkgorder --comp dist-7.3 --version 7.3 $BUILDROOT
	
	# generate the hdlist file again, using the pkgorder file this time
	/usr/lib/anaconda-runtime/genhdlist --fileorder $BASENAME.pkgorder
$BUILDROOT
	
	# build the iso, save to destination
	/usr/bin/mkisofs -V '$1-$2' -b dosutils/autoboot/cdboot.img -c
e-smith/base/boot.cat -J -r -T -pad -o $BASENAME.iso $BUILDROOT
	
	
	Regards,
	
	Graeme
	
	Jeff Coleman wrote:
	

		Several things.
		
		1.  No anaconda rpms or src on mirrors yet
		
		2.  All src files are links and not really src files
		
		-jeff 
		
		  

			-----Original Message-----
			From: Greg Zartman [mailto:[email protected]] 
			Sent: Friday, December 12, 2003 11:37 AM
			To: [email protected]
			Subject: [e-smith-devinfo] Custom ISO Howto
			
			Anyone on devinfo:
			
			Has this processed change for creating custom SME
ISOs?
			As root:
			
			1 Install anaconda and anaconda-runtime rpms if you
don't have them.
			2 Copy e-smith/mitel in ~/cd1
			3 chmod u+w ~/cd1/RedHat/base/hdlist
			4 chmod u+w ~/cd1/RedHat/base/comps
			5 REPLACE every rpm that you want to update, for
example Apache
			6 IF you want to ADD a package copy it in
~/cd1/RedHat/RPMS/
			7 IF you have added some package, edit
~/cd1/RedHat/comps and 
			add it's name in Customized Packages (or whatever
you like 
			best) /usr/lib/anaconda-runtime/genhdlist
--withnumbers --hdlist
			8 ~/cd1/RedHat/base/hdlist ~/cd1
			9 cp ~/cd1/images/cdboot.img ~/images
			10 mkisofs -V esmith -b ~/images/cdboot.img -c
~/boot.cat -r 
			-T -o cd1.iso ~/cd1
			
			 From 
	
http://www.e-smith.org/docs/howto/contrib/e-smith-custom-iso.html
			
			Also, are the correct anaconda RPMS & SRPMS on the
mirrors to do this?
			
			Any tricks missing from the 10 steps listed above?
			
			Greg
			
			
			--
			Greg J. Zartman
			
			
			
			
			--
			Please report bugs to [email protected]
			Please mail [email protected] (only) to discuss
security issues
			Support for registered customers and partners to
[email protected]
			To unsubscribe, e-mail:
[email protected]
			For additional commands, e-mail:
[email protected]
			Searchable archive at 
	
http://www.mail-archive.com/devinfo%40lists.e-smith.org
			
			
			    

		
		
		--
		Please report bugs to [email protected]
		Please mail [email protected] (only) to discuss security
issues
		Support for registered customers and partners to
[email protected]
		To unsubscribe, e-mail:
[email protected]
		For additional commands, e-mail:
[email protected]
		Searchable archive at
http://www.mail-archive.com/devinfo%40lists.e-smith.org
		
		  



--
Please report bugs to [email protected]
Please mail [email protected] (only) to discuss security issues
Support for registered customers and partners to [email protected]
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org