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

Bug#285326: modules.*map files on initrd don't match the included modules



Package: initrd-tools
Version: 0.1.75

The modules.*map included on the initrd.img list a lot
of unavailable modules.

Below you can find a patch for mkinitrd.


Regards

Harri
--- mkinitrd.bak	2004-11-15 04:57:29.000000000 +0100
+++ mkinitrd	2004-12-12 15:58:52.927519040 +0100
@@ -829,8 +829,6 @@
 }
 
 add_modules_dep() {
-	find "$MODULEDIR/" -maxdepth 1 -name 'modules.*'
-
 	if [ $oldstyle ] && [ $oldkernel ]; then
 		add_modules_dep_2_4
 		return
@@ -1037,7 +1035,6 @@
 			add_modules_dep
 			;;
 		none)
-			find "$MODULEDIR/" -maxdepth 1 -name 'modules.*'
 			;;
 		esac
 
@@ -1115,6 +1112,7 @@
 		fi
 	} > tmp3
 	< tmp3 sort -u | cpio -pLd --quiet initrd
+	depmod -b $dir/initrd -v $VERSION
 
 	ln -sf ${shell##*/} initrd/bin/sh
 	if ! [ -h initrd/bin/echo ]; then

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: