Bug#263169: loadmodules incomplete
Package: initrd-tools
Version: 0.1.72
mkinitrd does not detect some SCSI modules to add them to
the loadmodules file on the initrd, e.g. sata_sil. At boot
time these modules are not loaded, which might break access
to the root disk.
Attached you can find a patch.
Regards
Harri
--- /usr/sbin/mkinitrd 2004-07-28 01:18:01.000000000 +0200
+++ mkinitrd 2004-08-03 10:23:58.652062664 +0200
@@ -402,6 +402,7 @@
getroot() {
local major minor device flag soft= setroot=
local OPTIND=1 OPTARG
+ local i
while getopts "rs" flag; do
case $flag in
@@ -522,6 +523,9 @@
s/^esp-oktagon$/octagon_esp/
' | tac
echo sd_mod
+ for i in $(cat /proc/modules | awk '/^[A-Za-z0-9\-_]+ [0-9]+ [0-9]+ -/ {print $1;}'); do
+ test "$(find $MODULEDIR/kernel/drivers/scsi -name $i.$o)" && echo $i;
+ done
;;
7[2-9])
echo cpqarray
Reply to: