[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building custom kernel package



On Tue, Oct 16, 2001 at 02:18:40PM +0200, Russell Coker wrote:

Hi Russell,

> I've written some scripts to help manage this.  I've attached two scripts for
> inclusion in /etc/mkinitrd/scripts directory (make sure you don't run the
> devfs script in any other way), and the mkinitrd.conf file I use.  With that
> and the correct /etc/mkinitrd/modules file it should all work fine.

I tried the copy-needed-modules script and it choked on
my setup at the following module:

blkmtd device=/dev/ide/host0/bus1/target0/lun0/disc/part2 erasesz=8

The following patch helps to get the blkmtd module
included with the initrd image.

--- /root/mkinitrd/scripts/copy-needed-modules  Sat Dec  8 16:25:12 2001
+++ copy-needed-modules Sat Dec  8 16:38:23 2001
@@ -22,7 +22,9 @@
 open(MODULES, "grep -v ^# /etc/mkinitrd/modules | grep .|") or die "Can't open
 modules";
 while(<MODULES>)
 {
-  chomp;
+  # chomp;
+  $_ =~ /^((\w|-)+)/;
+  $_ = $1;
   foreach my $n ($names{$_}, split('\t', $deps{$names{$_}}) )
   {
     if(length($n) > 0)

Regards.
Bao

-- 
Bao C. Ha                    voice: (310) 922-0137
8D66 6672 7A9B 6879 85CD  42E0 9F6C 7908 ED95 6B38
Primary Perpetrator of "Slackware Linux Unleashed"



Reply to: