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

Bug#255199: missing files



tags 255199 patch
thanks

Hi,

Lior Kaplan writes:

> While installing kernel-image-2.6.6-2-k7 (over kernel-image-2.6.6-1-k7) I
> got two error messages from cpio about missing files:
> /etc/modprobe.conf
> /lib/modules/modprobe.conf

The ramdisk works nonetheless, provided the modprobe bug is fixed.
Still, the messages are somewhat annoying, please apply the enclosed
patch.

Regards, Jens.

--- /usr/sbin/mkinitrd~	2004-05-30 23:12:12.000000000 +0200
+++ /usr/sbin/mkinitrd	2004-06-19 16:53:50.892911848 +0200
@@ -1049,8 +1049,12 @@
 			if [ $oldstyle ]; then
 				echo /etc/modules.conf
 			else
-				echo /etc/modprobe.conf
-				echo /lib/modules/modprobe.conf
+				if [ -f /etc/modprobe.conf ]; then
+					echo /etc/modprobe.conf
+				fi
+				if [ -f /lib/modules/modprobe.conf ]; then
+					echo /lib/modules/modprobe.conf
+				fi
 				if [ -f /etc/modprobe.devfs ]; then
 					echo /etc/modprobe.devfs
 				fi



-- 
J'qbpbe, le m'en fquz pe j'qbpbe!
Le veux aimeb et mqubib panz je pézqbpbe je djuz tqtaj!



Reply to: