[PATCH] module-init-tools vs. mkinitrd

Boszormenyi Zoltan (zboszor@freemail.hu)
Tue, 11 Feb 2003 08:48:33 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-31316-1044949754-0001-2
Content-Type: text/plain; charset=iso-8859-2; format=flowed
Content-Transfer-Encoding: 8bit

Hi Rusty, Alan,

I am using RedHat 8.0 and experimenting sometimes with 2.5.x.
Some time ago I installed modutils-2.4.21-12 from Rusty's directory
from kernel.org and yesterday I upgraded to the latest RH errata kernel.
What surprised me was that the upgraded kernel did not boot up.
The problem is that mkinitrd does not copy /sbin/insmod.static.old
to the initrd image. Using the attached patch or downgrading to the RH8
modutils before upgrading the kernel fixes it.

Best regards,
Zoltan Bvszvrminyi

--=_courier-31316-1044949754-0001-2
Content-Type: text/plain; name="mkinitrd.diff"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mkinitrd.diff"

--- /sbin/mkinitrd.old 2002-09-05 07:07:04.000000000 +0200
+++ /sbin/mkinitrd 2003-02-10 20:40:04.000000000 +0100
@@ -501,6 +501,10 @@

inst /sbin/nash "$MNTIMAGE/bin/nash"
inst /sbin/insmod.static "$MNTIMAGE/bin/insmod"
+if [ -x /sbin/insmod.static.old ]
+then
+ inst /sbin/insmod.static.old "$MNTIMAGE/bin/insmod.old"
+fi
ln -s /sbin/nash $MNTIMAGE/sbin/modprobe

for MODULE in $MODULES; do

--=_courier-31316-1044949754-0001-2--