Re: [Cooker] CD split script

2001-01-11 Thread Guillaume Cottenceau

"Mike  Tracy Holt" [EMAIL PROTECTED] writes:


[...]

 Guillaume!  I love you!  Thank you  It finally worked!  I'm in the
 process of installing cooker right now. After having to repeatedly reinstall
 linux and re-mirror cooker over the last couple of weeks, if my computer
 blew up right now I'd still be happy!

Kool!!



-- 
Guillaume Cottenceau - http://us.mandrakesoft.com/~gc/




Re: [Cooker] CD split script

2001-01-11 Thread Warly

Leon Brooks [EMAIL PROTECTED] writes:

 Warly wrote:
 
  Here is a perl script that create isos from a cooker repository.
 
  You can modify it to fit your needs, its syntax is trivial.
 
 Those 135 lines may seem trivial to you because you wrote
 them. Actually trying to explain what it does requires a good
 knowledge of Mandrake's packaging system and/or PERL. (-:

No I was talking about the rpmslist file, not the script. I wanted
to say that you can create your own CDs with your own packages
lists.

-- 
Warly




RE: [Cooker] CD split script

2001-01-10 Thread Mike Tracy Holt



 About not finding the directory on the partition, I just implemented an
 additional feature that lists an extract of the partitions when the
 program fails to find the directory and/or Linux-Mandrake Distribution on
 your disks. If you want to try it quicker that the mirrors you can find it
 here:

 http://us.mandrakesoft.com/~gc/hd.img

 --
 Guillaume Cottenceau - http://us.mandrakesoft.com/~gc/



Guillaume!  I love you!  Thank you  It finally worked!  I'm in the
process of installing cooker right now. After having to repeatedly reinstall
linux and re-mirror cooker over the last couple of weeks, if my computer
blew up right now I'd still be happy!

Mike  :-D





Re: [Cooker] CD split script

2001-01-09 Thread J . A . Magallon


On 2001.01.09 Ron Stodden wrote:
 "J . A . Magallon" wrote:
  
  Please,  where can I found the mkcd.sh script that some people talked about
 ?
  I NEED to burn cooker on CDs to be able to recover the system. 
 
 Pray, why?   If you have the cooker download all ready to make CDs
 from, why? 

You want to know everything. Well, here's the full story. I have plenty of
disk space at work, and a fast connection (a University engineering school).
So I have cooker at work. At home I have no room to store the full distro
on disk. So I would like to burn the CDs and take them home.

 
 Just install Cooker into another partition using a floppy made from
 the /images/hd.img from your Cooker download partition.  Read the
 instructions in the download.
 
  Last time
  I installed a buggy rpm for glibc, the boot disks or CDs of 7.2 worth
  noting over a system running glibc22 and rpm4.
 
 Regretfully not comprehensible English.
 

Sorry, I sould better talk like indians:
- rpm -U glibc-xxx
- no boot
- boot with mdk 7.2 CD
- /CD/bin/rpm --root /my/disk -U --force old-glibc-: 
error: no rpm version 3 database, glibc is rpm v4 and so on...
- /my/disk/bin/rpm .: glibc22 binary, does not work with glibc on
  boot CD.

-- 
J.A. Magallon  $ cd pub
mailto:[EMAIL PROTECTED]  $ more beer

Linux werewolf 2.4.0-ac4 #1 SMP Mon Jan 8 22:10:06 CET 2001 i686





RE: [Cooker] CD split script

2001-01-09 Thread Mike Tracy Holt



 "J . A . Magallon" wrote:
 
  Please,  where can I found the mkcd.sh script that some people
 talked about ?
  I NEED to burn cooker on CDs to be able to recover the system.

 Pray, why?   If you have the cooker download all ready to make CDs
 from, why?

 Just install Cooker into another partition using a floppy made from
 the /images/hd.img from your Cooker download partition.  Read the
 instructions in the download.

  Last time
  I installed a buggy rpm for glibc, the boot disks or CDs of 7.2 worth
  noting over a system running glibc22 and rpm4.

 Regretfully not comprehensible English.

 --
 Regards,

 Ron. [AU]

Have you been successful at this in the last few days?  I just finished
wiping out my existing partitions AGAIN trying to install from the hd.img.
It gets to the point where it's asking where to install to and then the
directory where to get the install files from and then can't find the
files - returns 'no such directory on this partition'.  Then when trying
again, it says 'error - no supported filesystem found' or something to that
effect and when I try to boot back into my existing linux partition, it
can't read the disk partition anymore.  I'm perplexed!  How in the world are
you supposed to install this thing  I reinstall linux 7.2, mirror
cooker, then try to do hd.img and it wipes everything out.  I've tried
making one big ISO and installing using the hd.img from that - no luck; I've
tried splitting cooker using the script from MDK website and I end up with
an install CD that can't initialize my cdrom (???) and a second ISO image
that's about 766MB (to big to burn onto a disk).  If someone already has a
couple of working cooker ISO's on their website, I would very much
appreciate being able to download those ~ forget being able to debug the
current cooker, I can't even get passed the install script!
PLEASE - would someone make some ISO's available?

Thanks in advance, Mike





Re: [Cooker] CD split script (new rpmslist format)

2001-01-09 Thread Warly

"Mike  Tracy Holt" [EMAIL PROTECTED] writes:

 that's about 766MB (to big to burn onto a disk).  If someone already has a
 couple of working cooker ISO's on their website, I would very much
 appreciate being able to download those ~ forget being able to debug the
 current cooker, I can't even get passed the install script!
 PLEASE - would someone make some ISO's available?

Some cooker isos must be available before the end of this month, and I am
working on redoing a new script to ease the iso making. Moreover a 
new splitting file has been put on the the mirror.

rpmslist now has the following format :

CD num=1
packages 1
packages 2
...
packages n
/CD
CD num=2
packages 1
pacakges 2
...
packages m
/CD
...
CD num=p
packages 1
pacakges 2
...
packages o
/CD

-- 
Warly




Re: [Cooker] CD split script

2001-01-09 Thread Guillaume Cottenceau

"Mike  Tracy Holt" [EMAIL PROTECTED] writes:


[...]

 Have you been successful at this in the last few days?  I just finished
 wiping out my existing partitions AGAIN trying to install from the hd.img.
 It gets to the point where it's asking where to install to and then the
 directory where to get the install files from and then can't find the
 files - returns 'no such directory on this partition'.  Then when trying
 again, it says 'error - no supported filesystem found' or something to that
 effect and when I try to boot back into my existing linux partition, it
 can't read the disk partition anymore.  I'm perplexed!  How in the world are
 you supposed to install this thing  I reinstall linux 7.2, mirror

If you're stuck in the first stage where you have to tell where to install
from (yes the messages were a bit unclear, it's fixed now), it's HIGHLY
unprobably that I could eat your partition table!

About not finding the directory on the partition, I just implemented an
additional feature that lists an extract of the partitions when the
program fails to find the directory and/or Linux-Mandrake Distribution on
your disks. If you want to try it quicker that the mirrors you can find it
here:

http://us.mandrakesoft.com/~gc/hd.img


 cooker, then try to do hd.img and it wipes everything out.  I've tried
 making one big ISO and installing using the hd.img from that - no luck; I've
 tried splitting cooker using the script from MDK website and I end up with
 an install CD that can't initialize my cdrom (???) and a second ISO
 image

You've put "cdrom.img" in the boot record? What does it say?

 that's about 766MB (to big to burn onto a disk).  If someone already has a
 couple of working cooker ISO's on their website, I would very much
 appreciate being able to download those ~ forget being able to debug the
 current cooker, I can't even get passed the install script!
 PLEASE - would someone make some ISO's available?

There is an official cooker snapshot planned for january, 24. :-)..



-- 
Guillaume Cottenceau - http://us.mandrakesoft.com/~gc/




Re: [Cooker] CD split script

2001-01-09 Thread Warly


Here is a perl script that create isos from a cooker repository.
It does not create live images of isos, so you only needs space for
the isos themselves.

If you are not root and that someone is also building isos on your system,
the /tmp/.build_hdlist may be locked, so you should set the TMPDIR environment 
variable to an appropriate location. In this directory dependency files
are created, you'll need about 10 MB to build them.

Script usage:

perl mkcd.pl repository dir iso creation dir

repository dir is the top of your mirror (I ll may add ftp or http
access to remotely build isos, but later)

iso creation dir is where you want your isos to be built

This script is based on the rpmslist file in Mandrake/base, so be sure that
it is present. You can modify it to fit your needs, its syntax is trivial.

The script (it is available through cvs in cooker/soft/mkcd): 



#!/usr/bin/perl

use strict;

my ($rep,$iso) = @ARGV;
$iso or usage();

my @cd;
open A, "$rep/Mandrake/base/rpmslist";
my ($num,@a);
my %list;
while(A){
/\/CD/ and $num = 0;
/CD num=(\d+)/ and do { $num = $1; push @cd, $num};
s/\+/\\\+/g;
/(?:.*)*([^]*)\n/; 
$1 and do {
@a = split ' ', $1;
@list{@a} = map $num,@a
}
}

my $depslist = "$rep/Mandrake/base/depslist.ordered";
my $hdlist   = "$rep/Mandrake/base/hdlist.cz2";
my $dir  = "$rep/Mandrake/RPMS";
$ENV{PATH} = "$ENV{PATH}:$rep/misc";

my $tmpdir = $ENV{TMPDIR} || "/tmp";
my $work_dir = "$tmpdir/.build_hdlist";

-e $work_dir  !-d $work_dir and unlink($work_dir) || die "cannot use $work_dir as a 
working directory";
chmod 0755, $work_dir or system("rm -rf $work_dir");
-d $work_dir or mkdir $work_dir, 0755 or die "cannot create working directory 
$work_dir\n";
chdir $work_dir;

# build the hdlists
my (@list, %keys, @keys);

opendir DIR, $dir or die "unable to opendir $dir: $!\n";
while ($_ = readdir DIR) {
my ($key, $arch) = /(.*)\.(.*)\.rpm$/ or next;
system("rpm2header $dir/$_  $_") unless -e $_;
$? == 0 or unlink($_), die "bad rpm $dir/$_\n";
-s $_ or unlink($_), die "bad rpm $dir/$_\n";
my ($name, $tail) = $key =~ /(.*)(-[^-]*-[^-]*)/;
my $n = $list{$name};
push @{$list[$n]}, $_;
if ($keys{$n}{$key}) {
$keys{$n}{"$name($keys{$key})$tail"} = $keys{$n}{$key}; unlink 
"$name($keys{$n}{$key})$tail"; link "$key.$keys{$n}{$key}.rpm", 
"$name($keys{$n}{$key})$tail";
$keys{$n}{"$name($arch)$tail"} = $arch; unlink "$name($arch)$tail"; link $_, 
"$name($arch)$tail";
delete $keys{$n}{$key};
} else {
$keys{$n}{$key} = $arch; unlink $key; link $_, $key;
}
}
my @dkeys;
if (-e "$rep/Mandrake/base/depslist.ordered") {
open F, $depslist;
@dkeys = map { (split)[0] } F;
}
open C, "$work_dir/hdlists";
my $cmddep = "genbasefiles $work_dir/";
foreach my $n (@cd){
my @keys = grep { delete $keys{$n}{$_} } @dkeys; 

open B, "| packdrake -b9s $work_dir/hdlist$n.cz 40";
foreach (@keys, keys %{$keys{$n}}) { print B "$_\n" }
close B or die "packdrake failed\n";
print C "hdlist$n.cz Mandrake/RPMS$n CD $n Cooker\n";
$cmddep .= " $work_dir/hdlist$n.cz"

}
close C;
system $cmddep;

my $mkiso = qq{mkisofs -r -J -graft-points -nobak -V "Cooker_CD_1" -b images/all.img 
-c images/boot.cat -o "$iso/1-Cooker-i586.iso" \\
images/=$rep/images \\
COPYING=$rep/COPYING\\
LICENSE-APPS.txt=$rep/LICENSE-APPS.txt  \\
RPM-GPG-KEYS=$rep/RPM-GPG-KEYS  \\
autorun.inf=$rep/autorun.inf\\
doc/=$rep/doc   \\
install.htm=$rep/install.htm\\
lnx4win/=$rep/lnx4win   \\
tutorial/=$rep/tutorial \\
INSTALL.txt=$rep/INSTALL.txt\\
LICENSE.txt=$rep/LICENSE.txt\\
README.txt=$rep/README.txt  \\
VERSION=$rep/VERSION\\
boot/=$rep/boot \\
dosutils/=$rep/dosutils \\
index.htm=$rep/index.htm\\
live_update=$rep/live_update\\
misc/=$rep/misc \\
Mandrake/mdkinst/=$rep/Mandrake/mdkinst \\
Mandrake/base/=$rep/Mandrake/base/compssUsers   \\
Mandrake/base/=$rep/Mandrake/base/mdkinst_stage2.gz \\
Mandrake/base/=$rep/Mandrake/base/rescue_stage2.gz  \\
Mandrake/base/=$rep/Mandrake/base/rpmslist  \\
Mandrake/base/=$rep/Mandrake/base/rpmsrate  \\
Mandrake/base/=$work_dir/compss \\
Mandrake/base/=$work_dir/depslist.ordered   \\
Mandrake/base/=$work_dir/provides   \\
Mandrake/base/=$work_dir/hdlists};

foreach (@cd) {
$mkiso .= "\\\n 

Re: [Cooker] CD split script

2001-01-09 Thread hayward


 Please,  where can I found the mkcd.sh script that some people talked about ?
 I NEED to burn cooker on CDs to be able to recover the system.

Pray, why?   If you have the cooker download all ready to make CDs
from, why?

Easier to take the cd's to other computers, I'd assume.  I know when I get
cooker installed, if it works out for me I'm going to setup at least 2
more development machines at different sites with it as well.

--
Brian





RE: [Cooker] CD split script

2001-01-09 Thread Mike Tracy Holt



 If you're stuck in the first stage where you have to tell where to install
 from (yes the messages were a bit unclear, it's fixed now), it's HIGHLY
 unprobably that I could eat your partition table!

Unprobable?  Maybe.  Did it do it?  YES.  If I could give you another
answer, I would; but everything happened as I said and when I rebooted I was
unable to boot Linux.  :(

 About not finding the directory on the partition, I just implemented an
 additional feature that lists an extract of the partitions when the
 program fails to find the directory and/or Linux-Mandrake Distribution on
 your disks. If you want to try it quicker that the mirrors you can find it
 here:

 http://us.mandrakesoft.com/~gc/hd.img


Thank you!  I just downloaded it and am about to start again.


  cooker, then try to do hd.img and it wipes everything out.  I've tried
  making one big ISO and installing using the hd.img from that -
 no luck; I've
  tried splitting cooker using the script from MDK website and I
 end up with
  an install CD that can't initialize my cdrom (???) and a second ISO
  image

 You've put "cdrom.img" in the boot record? What does it say?

I'm not sure what you mean?

  that's about 766MB (to big to burn onto a disk).  If someone
 already has a
  couple of working cooker ISO's on their website, I would very much
  appreciate being able to download those ~ forget being able to debug the
  current cooker, I can't even get passed the install script!
  PLEASE - would someone make some ISO's available?

 There is an official cooker snapshot planned for january, 24. :-)..

I'm looking forward to it!

Thanks!  Mike

 --
 Guillaume Cottenceau - http://us.mandrakesoft.com/~gc/






Re: [Cooker] CD split script

2001-01-09 Thread Leon Brooks

Warly wrote:

 Here is a perl script that create isos from a cooker repository.

 You can modify it to fit your needs, its syntax is trivial.

Those 135 lines may seem trivial to you because you wrote them. Actually 
trying to explain what it does requires a good knowledge of Mandrake's 
packaging system and/or PERL. (-:

-- 
I am returning this otherwise good typing paper to you because
someone has printed gibberish all over it and put your name at
the top. -- English Professor, Ohio University





Re: [Cooker] CD split script

2001-01-08 Thread Ron Stodden

"J . A . Magallon" wrote:
 
 Please,  where can I found the mkcd.sh script that some people talked about ?
 I NEED to burn cooker on CDs to be able to recover the system. 

Pray, why?   If you have the cooker download all ready to make CDs
from, why? 

Just install Cooker into another partition using a floppy made from
the /images/hd.img from your Cooker download partition.  Read the
instructions in the download.

 Last time
 I installed a buggy rpm for glibc, the boot disks or CDs of 7.2 worth
 noting over a system running glibc22 and rpm4.

Regretfully not comprehensible English.

-- 
Regards,

Ron. [AU]