Re: [Cooker] ISO making script [take IV]
On Wed, Oct 04, 2000 at 09:27:26AM +0800, Leon Brooks wrote: I'm beginning to suspect that this script author didn't use BASH. I've added a I use the scripts from Troels Liebe Bentsen, which I attached to this mail. All you need to call is ./genisocooker and make sure that a) all the scripts are in the current directory and b) that the settings in genisocooker fits your needs. HTH Alexander Skwar -- Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx Sichere Mail? Mail an [EMAIL PROTECTED] fuer GnuPG Keys ICQ:7328191 #!/usr/bin/perl open F, "bzip2 -dc @ARGV 2/dev/null | hdlist2groups - |"; foreach (F) { chop; /(.*):(.*)/; $l{$2}{$1} = undef; } close F or die; foreach (sort keys %l) { print "$_\n"; print "\t$_\n" foreach sort keys %{$l{$_}}; print "\n"; } #!/bin/sh # Linux-Mandrake Cooker HDlist Creation, flat version # Made by Troels Liebe Bentsen from Kenny Graunke's script. mdkLOCALROOT=/dist/Mandrake/cooker # generate the dependance files rm -f $mdkLOCALROOT/Mandrake/base/{hdlists,hdlist.cz2} genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/RPMS echo "hdlist.cz2 Mandrake/RPMS Installation CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists # Needed if you have added rpm. rm -f $mdkLOCALROOT/Mandrake/base/compss ./gencompss $mdkLOCALROOT/Mandrake/base/hdlist*.cz2 $mdkLOCALROOT/Mandrake/base/compss rm -f $mdkLOCALROOT/Mandrake/base/{depslist,depslist.ordered,filelist} gendepslist2 -o $mdkLOCALROOT/Mandrake/base/depslist $mdkLOCALROOT/Mandrake/base/hdlist.cz2 genfilelist $mdkLOCALROOT/Mandrake/RPMS $mdkLOCALROOT/Mandrake/base/filelist #!/bin/sh # Linux-Mandrake Helium ISO CD Creation Script # Made by Troels Liebe Bentsen. mdkLOCALROOT=/dist/Mandrake-stable mdkLOCALROOTTMP=/dist/Mandrake-stable2 mdkBOOTIMAGESTMP=/dist/Mandrake-stable2-img mdkISODIR=/dist/iso mdkISONAME1=MinLinux-0.1-ins.iso mdkISONAME2=MinLinux-0.1-ext.iso mdkISOLABLE1=MDK71INS mdkISOLABLE2=MDK71EXT rm -f $mdkISODIR/$mdkISONAME1 $mdkISODIR/$mdkISONAME2 # Do a little prep to get the boot images to the start of the first disk rm -rf $mdkBOOTIMAGESTMP mkdir -p $mdkBOOTIMAGESTMP mv $mdkLOCALROOT/images $mdkBOOTIMAGESTMP mkdir -p $mdkLOCALROOTTMP/Mandrake mv $mdkLOCALROOT/Mandrake/RPMS2 $mdkLOCALROOTTMP/Mandrake # create the first iso image mkisofs -r -J -V $mdkISOLABLE1\ -o $mdkISODIR/$mdkISONAME1 \ -b images/cdrom.img \ -c images/boot.cat \ $mdkBOOTIMAGESTMP \ $mdkLOCALROOT # move the images back where they belong rm -rf $mdkLOCALROOT/images mv -f $mdkBOOTIMAGESTMP/images $mdkLOCALROOT/images rm -rf $mdkBOOTIMAGESTMP # create the second iso image mkisofs -r -J -V $mdkISOLABLE2\ -o $mdkISODIR/$mdkISONAME2 \ $mdkLOCALROOTTMP/ # Move all data back mv $mdkLOCALROOTTMP/Mandrake/RPMS2 $mdkLOCALROOT/Mandrake/ rm -rf $mdkLOCALROOTTMP/ #!/bin/sh # Linux-Mandrake Cooker ISO CD Creation Script # Made by Troels Liebe Bentsen from Kenny Graunke's script. shopt -s extglob mdkLOCALROOT=/opt/Mandrake mdkLOCALROOTTMP=/opt/Mandrake-cooker2 mdkBOOTIMAGESTMP=/opt/Mandrake-cooker-img mdkISODIR=/opt/iso mdkISONAME1=cooker-inst.iso mdkISONAME2=cooker-ext.iso mdkISOLABLE1=MDKINS mdkISOLABLE2=MDKEXT rm -f $mdkISODIR/$mdkISONAME1 $mdkISODIR/$mdkISONAME2 # Move rpms to where they should go. echo "Move rpms to where they should go." mkdir -p $mdkLOCALROOTTMP/Mandrake/RPMS2 mv $mdkLOCALROOT/Mandrake/RPMS/* $mdkLOCALROOTTMP/Mandrake/RPMS2 for i in `cat $mdkLOCALROOT/Mandrake/base/rpmslist` ; do mv $mdkLOCALROOTTMP/Mandrake/RPMS2/$i-!(*-*)-!(*-*)mdk*.rpm $mdkLOCALROOT/Mandrake/RPMS done # generate the dependance files echo "generate the dependance files" rm -f $mdkLOCALROOT/Mandrake/base/{hdlists,hdlist.cz2} genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/RPMS echo "hdlist.cz2 Mandrake/RPMS Installation CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists rm -f $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 $mdkLOCALROOTTMP/Mandrake/RPMS2 echo "hdlist2.cz2 Mandrake/RPMS2 Extension CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists # Needed if you have added rpm. echo "Needed if you have added rpm." rm -f $mdkLOCALROOT/Mandrake/base/compss ./gencompss $mdkLOCALROOT/Mandrake/base/hdlist*.cz2 $mdkLOCALROOT/Mandrake/base/compss rm -f $mdkLOCALROOT/Mandrake/base/{depslist,depslist.ordered,filelist} gendepslist2 -o $mdkLOCALROOT/Mandrake/base/depslist $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 genfilelist $mdkLOCALROOT/Mandrake/RPMS $mdkLOCALROOTTMP/Mandrake/RPMS2 $mdkLOCALROOT/Mandrake/base/filelist # Do a little prep to get the boot images to the start of the first disk echo "Do a little prep to get the boot images to the start of the first disk" rm -rf $mdkBOOTIMAGESTMP mkdir -p $mdkBOOTIMAGESTMP mv $mdkLOCALROOT/images $mdkBOOTIMAGESTMP # create the first iso image echo "create the first iso image" mkisofs -r -J -V $mdkISOLABLE1\
Re: [Cooker] ISO making script [take IV]
Alexander Skwar [EMAIL PROTECTED] writes: On Wed, Oct 04, 2000 at 09:27:26AM +0800, Leon Brooks wrote: I'm beginning to suspect that this script author didn't use BASH. I've added a I use the scripts from Troels Liebe Bentsen, which I attached to this mail. All you need to call is ./genisocooker and make sure that a) all the scripts are in the current directory and b) that the settings in genisocooker fits your needs. personal comments added: [2. text/plain; gencompss] #!/usr/bin/perl open F, "bzip2 -dc @ARGV 2/dev/null | hdlist2groups - |"; foreach (F) { chop; /(.*):(.*)/; $l{$2}{$1} = undef; } close F or die; foreach (sort keys %l) { print "$_\n"; print "\t$_\n" foreach sort keys %{$l{$_}}; print "\n"; } this one is no more needed, genbasefiles contains it in /misc -- [5. text/plain; genisocooker] [...] # generate the dependance files echo "generate the dependance files" rm -f $mdkLOCALROOT/Mandrake/base/{hdlists,hdlist.cz2} genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/RPMS echo "hdlist.cz2 Mandrake/RPMS Installation CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists rm -f $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 $mdkLOCALROOTTMP/Mandrake/RPMS2 echo "hdlist2.cz2 Mandrake/RPMS2 Extension CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists # Needed if you have added rpm. echo "Needed if you have added rpm." rm -f $mdkLOCALROOT/Mandrake/base/compss ./gencompss $mdkLOCALROOT/Mandrake/base/hdlist*.cz2 $mdkLOCALROOT/Mandrake/base/compss rm -f $mdkLOCALROOT/Mandrake/base/{depslist,depslist.ordered,filelist} gendepslist2 -o $mdkLOCALROOT/Mandrake/base/depslist $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 genfilelist $mdkLOCALROOT/Mandrake/RPMS $mdkLOCALROOTTMP/Mandrake/RPMS2 $mdkLOCALROOT/Mandrake/base/filelist better to do this # generate the dependance files echo "generate the dependance files" rm -f $mdkLOCALROOT/Mandrake/base/{hdlists,hdlist.cz2} genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/RPMS echo "hdlist.cz2 Mandrake/RPMS Installation CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists rm -f $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 genhdlist_cz2 -o $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 $mdkLOCALROOTTMP/Mandrake/RPMS2 echo "hdlist2.cz2 Mandrake/RPMS2 Extension CD (x86)" $mdkLOCALROOT/Mandrake/base/hdlists rm -f $mdkLOCALROOT/Mandrake/base/compss rm -f $mdkLOCALROOT/Mandrake/base/{depslist,depslist.ordered,filelist} genbasefiles $mdkLOCALROOT/Mandrake/base/ $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 genfilelist $mdkLOCALROOT/Mandrake/RPMS $mdkLOCALROOTTMP/Mandrake/RPMS2 $mdkLOCALROOT/Mandrake/base/filelist # resort the hdlist with the order of the depslist to be more efficient genhdlist_cz2 --ordered-depslist $mdkLOCALROOT/Mandrake/base/depslist.ordered $mdkLOCALROOT/Mandrake/base/hdlist.cz2 $mdkLOCALROOT/Mandrake/RPMS genhdlist_cz2 --ordered-depslist $mdkLOCALROOT/Mandrake/base/depslist.ordered $mdkLOCALROOT/Mandrake/base/hdlist2.cz2 $mdkLOCALROOTTMP/Mandrake/RPMS2 # create the first iso image echo "create the first iso image" mkisofs -r -J -V $mdkISOLABLE1\ -o $mdkISODIR/$mdkISONAME1 \ -b images/cdrom.img \ -c images/boot.cat \ $mdkBOOTIMAGESTMP \ $mdkLOCALROOT better to use the all.img, 2.88 MB with all the modules (images/all.img) Say me if I made some typos -- Warly
Re: [Cooker] ISO making script [take IV] Troels' script
Alexander Skwar wrote: On Wed, Oct 04, 2000 at 09:27:26AM +0800, Leon Brooks wrote: I'm beginning to suspect that this script author didn't use BASH. I've added a I use the scripts from Troels Liebe Bentsen, which I attached to this mail. All you need to call is ./genisocooker and make sure that a) all the scripts are in the current directory and b) that the settings in genisocooker fits your needs. Thanks muchly, I will give it a go when I can lay hands on a working SCSI card. )-: -- Hiroshima '45 Chernobyl '86 Windows '95