Your patch did not work... I want to create a initrd which
is able to boot with or without devfs. Believe it or not, the
following patch is the only way it works.
--- mkinitrd.orig Thu May 10 18:16:05 2001
+++ mkinitrd Thu May 10 18:16:05 2001
@@ -396,8 +396,9 @@
fi
if [ -n "$startraid" ]; then
- cp -a /dev/md0 $MNTIMAGE/dev
+ mknod $MNTIMAGE/dev/md0 b 9 0
echo "raidautorun /dev/md0" >> $RCFILE
+ echo "raidautorun /dev/md/0" >> $RCFILE
fi
chmod +x $RCFILE
Can somebody explain?
Can somebody else try this?
Russell Cattelan schrieb:
>
> Simon Matter wrote:
>
> >
> > > --- mkinitrd~ Fri Mar 23 15:21:08 2001
> > > +++ mkinitrd Wed May 9 10:22:14 2001
> > > @@ -396,8 +396,9 @@
> > > fi
> > >
> > > if [ -n "$startraid" ]; then
> > > - cp -a /dev/md0 $MNTIMAGE/dev
> > > - echo "raidautorun /dev/md0" >> $RCFILE
> > > + mkdir $MNTIMAGE/dev/md
> >
> > What are you doing here? Since we don't have devfs at this time, we
> > can't copy /dev/md/0 to the initrd???
>
> Actually looking at this closer this would seem to be better...
> --- /sbin/mkinitrd Wed May 9 11:38:46 2001
> +++ /sbin/mkinitrd.orig Wed May 9 11:37:19 2001
> @@ -396,7 +396,7 @@
> fi
>
> if [ -n "$startraid" ]; then
> + mknod $MNTIMAGE/dev/md0 b 9 0
> - cp -a /dev/md0 $MNTIMAGE/dev
> echo "raidautorun /dev/md0" >> $RCFILE
> fi
>
> at some point the rest of mkinitrd was changed to use mknod for all
> the devices it needed, it would appear the raid portion got overlooked.
>
> >
> >
> > > + cp -a /dev/md/0 $MNTIMAGE/dev/md
> > > + echo "raidautorun /dev/md/0" >> $RCFILE
> > > fi
> > >
> > > chmod +x $RCFILE
> > >
> > Maybe linuxrc solution could be easier:
> >
> > raidautorun /dev/md/0
> > raidautorun /dev/md0
> >
> > If we don't have devfs, the first line won't do anything but the
> > second statement should do the job. I'll try it later, maybe I'm
> > completely wrong...
>
> we just need to make sure initrd has a raid dev
> devfs isn't in the picture yet when initrd is loaded.
>
> lilo should work either way since once devfsd is running /dev/md0
> should
> exist
>
> >
> >
> > --
> > Simon Matter Tel: +41 61 695 57 35
> > Fr.Sauter AG / CIT Fax: +41 61 695 53 30
> > Im Surinam 55
> > CH-4016 Basel [mailto:simon.matter@xxxxxxxxxxxxxxxx]
>
> --
> Russell Cattelan
> --
> Digital Elves inc. -- Currently on loan to SGI
> Linux XFS core developer.
--
Simon Matter Tel: +41 61 695 57 35
Fr.Sauter AG / CIT Fax: +41 61 695 53 30
Im Surinam 55
CH-4016 Basel [mailto:simon.matter@xxxxxxxxxxxxxxxx]
|