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
[Cooker] ISO making script
Is the cooker list archived somewhere? 72beta_mkcd.sh was totally broken on my (Mandrake 7.1) system. The genfilelist command does not exist either in my distro or in the mirrored files. Where can I get one. To discover this, I had first to find out after much waiting that the 72beta_mkcd script itself is dead, in particular, the section which moves stuff back out of the second CD's RPMS2 directory into the first's RPMS directory needed a sed filter to extract each base RPM name before applying a wildcarded mv to it (see attached script, at line 94). -- double value;/* or your money back! */ short changed; /* so triple your money back! */ -- Larry Wall in cons.c from the perl source code 72beta1_mkcd.sh
Re: [Cooker] ISO making script
On Tue, Oct 03, 2000 at 09:38:31PM +0800, Leon Brooks wrote: Is the cooker list archived somewhere? Yeah, same place where all the other Mdk lists are archived, mailarchive.com, or something like this. 72beta_mkcd.sh was totally broken on my (Mandrake 7.1) system. What script? Where did you get it from? The genfilelist command does not exist either in my distro or in the mirrored files. Where can I get one. Look closer: [askwar@teich ~/RPM]$ rpm -qf `which genfilelist` rpmtools-devel-1.2-11mdk Alexander Skwar -- Homepage: http://www.digitalprojects.com | http://www.dp.ath.cx Sichere Mail? Mail an [EMAIL PROTECTED] fuer GnuPG Keys ICQ:7328191
Re: [Cooker] ISO making script
Alexander Skwar wrote: 72beta_mkcd.sh was totally broken on my (Mandrake 7.1) system. What script? Where did you get it from? From the 72beta FTP page on www.linux-mandrake.com The genfilelist command does not exist either in my distro or in the mirrored files. Where can I get one. Look closer: [askwar@teich ~/RPM]$ rpm -qf `which genfilelist` rpmtools-devel-1.2-11mdk Didn't work at all well on my 7.1 system. Works much better now that I've upgraded my rpmtools RPM (see comment in attached, updated, seems-to-be-working script). Thanks for the pointer, Alexander. We chose your name for our first-born son (now 13mo), not because of this simple but effective tip but because it is a good name. Enjoy it! (-: -- "Normal is getting dressed in clothes that you buy for work, driving through traffic in a car that you are still paying for, in order to get to a job that you need so you can pay for the clothes, car and the house that you leave empty all day in order to afford to live in it." -- Ellen Goodman 72beta1_mkcd.sh
Re: [Cooker] ISO making script [take III]
Leon Brooks wrote: Alexander Skwar wrote: 72beta_mkcd.sh was totally broken on my (Mandrake 7.1) system. What script? Where did you get it from? From the 72beta FTP page on www.linux-mandrake.com Works much better now that I've upgraded my rpmtools RPM (see comment in attached, updated, seems-to-be-working script). Oh, well, nice theory. The sed regex near line 100 was inadequate, change it to this: 's/\-[^-]*\-[0-9][^-]*mdk[a-z]*\..*$//' -- "Source code gets compiled and libraries get loaded (insert silly drinking reference here)." -- Dave Mark "Learn C on the Macintosh"