The
- Code: Select all
LOG("* Looking for a possible CD/DVD...\n");
my $CD_Dev = '';
{
my $nb = 0;
foreach my $d ("hda", "hdb", "hdc", "hdd", "sda", "sdb", "sdc", "sr0", "sr1")
{
system("umount /mnt/cdrom >/dev/null 2>&1");
system("mount /dev/$d /mnt/cdrom >/dev/null 2>&1");
my $nb = `df|grep cdrom|wc -l`;
if($nb > 0)
{
LOG(" Found and mounted a CDRom\n");
opendir(DIR, "/mnt/cdrom");
my(@Files) = readdir(DIR);
closedir(DIR);
foreach my $F (@Files)
{
if(($F =~/^[hs]d[abcde]$/) || ($F =~/^cciss$/) || ($F =~/^ida$/)|| ($F =~/^rd$/) )
{
LOG(" Found a [/mnt/cdrom/$F] image\n");
$CD_Dev = $d;
$SRC = "/mnt/cdrom";
LOG(" Linking [/dev/cdrom] to [/dev/$d]\n");
system("rm -f /dev/cdrom; ln -sf /dev/$d /dev/cdrom");
}
}
sleep(5); # Blink & start up.
last;
}
}
unless($nb)
{
LOG(" No CDRom device or media was found.\n");
}
}
Portion can not be in the isolinux.cfg file. That will not work. That chunk of code goes into the rc.ping file which is compressed into the initrd.gz file. If you are unsure how to update the rc.ping file there are instructions here on the forum. Other than that you have two options I can see:
1) Wait until Natan releases the newer PING with the fix applied
2) Ask someone on the forum to update the initrd.gz file and send it back to you.