Bug#302324: loop-aes-source: initrd complains about missing module loop.ko_orig
Max Vozeler schrieb: > Hi Thomas, Hi Max, > What happens here is that mkinitrd does not ignore non-.o/.ko/.gz > modules as it probably should. The warning is "just" annoying though, > it makes no difference for the initrd build in any way. Not really: inspecting the initrd (installation without error) gives me: thomas:/mnt/no.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# ls cciss.ko cpqarray.ko cryptoloop.ko DAC960.ko floppy.ko loop.ko pktcdvd.ko sx8.ko umem.ko xd.ko thomas:/mnt/no.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# ls -l insgesamt 372 -rw-r--r-- 1 root root 52420 1970-01-01 01:00 cciss.ko -rw-r--r-- 1 root root 29880 1970-01-01 01:00 cpqarray.ko -rw-r--r-- 1 root root 5340 1970-01-01 01:00 cryptoloop.ko -rw-r--r-- 1 root root 84937 1970-01-01 01:00 DAC960.ko -rw-r--r-- 1 root root 79175 1970-01-01 01:00 floppy.ko -rw-r--r-- 1 root root 20745 1970-01-01 01:00 loop.ko -rw-r--r-- 1 root root 39039 1970-01-01 01:00 pktcdvd.ko -rw-r--r-- 1 root root 22584 1970-01-01 01:00 sx8.ko -rw-r--r-- 1 root root 20230 1970-01-01 01:00 umem.ko -rw-r--r-- 1 root root 23989 1970-01-01 01:00 xd.ko thomas:/mnt/no.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# modinfo loop.ko filename: loop.ko license:GPL alias: block-major-7-* vermagic: 2.6.10-knoelk preempt K7 gcc-3.3 depends: parm: max_loop:Maximum number of loop devices (1-256) thomas:/mnt/no.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# So I have the original kernel loop modul. (how sould mkinitrd know that one adds the loop-aes-modul package afterwards) Installation with error: thomas:/mnt/with.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# ls -l total 440 -rw-r--r-- 1 root root 84937 Jan 1 1970 DAC960.ko -rw-r--r-- 1 root root 52420 Jan 1 1970 cciss.ko -rw-r--r-- 1 root root 29880 Jan 1 1970 cpqarray.ko -rw-r--r-- 1 root root 5340 Jan 1 1970 cryptoloop.ko -rw-r--r-- 1 root root 79175 Jan 1 1970 floppy.ko -rw-r--r-- 1 root root 69611 Jan 1 1970 loop.ko -rw-r--r-- 1 root root 20745 Jan 1 1970 loop.ko-orig -rw-r--r-- 1 root root 39039 Jan 1 1970 pktcdvd.ko -rw-r--r-- 1 root root 22584 Jan 1 1970 sx8.ko -rw-r--r-- 1 root root 20230 Jan 1 1970 umem.ko -rw-r--r-- 1 root root 23989 Jan 1 1970 xd.ko thomas:/mnt/with.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# modinfo loop.ko filename: loop.ko license:GPL alias: block-major-7-* vermagic: 2.6.10-knoelk preempt K7 gcc-3.3 depends: parm: lo_nice:Loop thread scheduler nice (0 ... -20) parm: lo_prealloc:Number of pre-allocated pages [,index,pages]... parm: max_loop:Maximum number of loop devices (1-256) thomas:/mnt/with.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# modinfo loop.ko-orig filename: loop.ko-orig license:GPL alias: block-major-7-* vermagic: 2.6.10-knoelk preempt K7 gcc-3.3 depends: parm: max_loop:Maximum number of loop devices (1-256) thomas:/mnt/with.error/lib/modules/2.6.10-knoelk/kernel/drivers/block# So I have a different initrd. The latter one has the loop-aes loop modul. Perhaps one should document this "feature". > > These seems to be the consequence of the last bugfix. > > Going to $MODULDIR/block/drivers and issuing > > laptop:/lib/modules/2.6.10-nb/kernel/drivers/block# ls -l loop* > > -rw-r--r-- 1 root root 20597 Mar 29 20:25 loop.ko-orig > > This one is confusing me. > > Just so I understand, when you purged the kernel image, was > loop-aes installed? Did you purge loop-aes as well? Was loop-aes > installed at the time you did "ls" above? Now I got a method to show the error. - Installed latest loop-aes-source 2.2d-5 - Clean /lib/modules thomas:/lib/modules# ls -l insgesamt 20 drwxr-xr-x 4 root root 4096 2005-04-03 18:46 2.4.27-grsec drwxr-xr-x 5 root root 4096 2005-02-03 18:16 2.6.10-1-k7 drwxr-xr-x 5 root root 4096 2005-04-04 15:14 2.6.10-sc drwxr-xr-x 4 root root 4096 2005-04-03 18:45 2.6.8-1-k7 drwxr-xr-x 4 root root 4096 2005-04-03 18:45 2.6.8-sc The desired kernel will have version 2.6.10-knoelk. - Installing the compiled kernel ( make-kpkg kernel_image --append-to-version \-knoelk modules_image --initrd ) and loop-aes-modules. ( I have these packages completly purged from the system before ) thomas:/usr/src# dpkg -i kernel-image-2.6.10-knoelk_10.00.Custom_i386.deb loop-aes-2.6.10-knoelk_2.2d-5+10.00.Custom_i386.deb Selecting previously deselected package kernel-image-2.6.10-knoelk. (Reading database ... 158381 files and directories currently installed.) Unpacking kernel-image-2.6.10-knoelk (from kernel-image-2.6.10-knoelk_10.00.Custom_i386.deb) ... Selecting previously deselected package loop-aes-2.6.10-knoelk. Unpacking loop-aes-2.6.10-knoelk (from loop-aes-2.6.10-knoelk_2.2d-5+10.00.Custom_i386.deb) ... Adding `diversion of /lib/modules/2.6.10-knoelk/kernel/drivers/block/loop.ko to /lib/modules/2.6.10-knoelk/kern
Bug#302324: loop-aes-source: initrd complains about missing module loop.ko_orig
Hi Thomas, [EMAIL PROTECTED] wrote: > seems that I'm the only user of loop-aes ;) Dunno, but you have a good touch for shaking out the corner cases :-) > When I now install the kernel-image (before I have purged the same > version) I get the following message: > [...] > Setting up kernel-image-2.6.10-nb (01) ... > /usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed > FATAL: Module loop.ko_orig not found. > WARNING: This failure MAY indicate that your kernel will not boot! > but it can also be triggered by needed modules being compiled into > the kernel. > [...] What happens here is that mkinitrd does not ignore non-.o/.ko/.gz modules as it probably should. The warning is "just" annoying though, it makes no difference for the initrd build in any way. > These seems to be the consequence of the last bugfix. > Going to $MODULDIR/block/drivers and issuing > laptop:/lib/modules/2.6.10-nb/kernel/drivers/block# ls -l loop* > -rw-r--r-- 1 root root 20597 Mar 29 20:25 loop.ko-orig This one is confusing me. Just so I understand, when you purged the kernel image, was loop-aes installed? Did you purge loop-aes as well? Was loop-aes installed at the time you did "ls" above? Do you remember which version of loop-aes was installed before? I'm thinking this could be a side effect from changing the diversion during upgrade from a version < 2.2d-3, if kernel-image was removed before upgrade of the loop-aes package. Another thing, could you send output of dpkg-divert --list | grep /lib/modules/2.6.10-nb dpkg -S /lib/modules/2.6.10-nb/kernel/drivers/block/loop.ko{,-orig} Thanks. > When is this diversion thing issued ? > When I install loop-aes or the korresponding kernel-image ? It's added in preinst of the loop-aes module package, so when you install that one. > I don't know if this bug would be better directed to initrd-tools ... The spurious warning from mkinitrd can be fixed in initrd-tools. I think I'll prepare a patch and later clone/submit the bug there. cheers, Max -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#302324: loop-aes-source: initrd complains about missing module loop.ko_orig
Subject: loop-aes-source: initrd complains about missing module loop.ko_orig Package: loop-aes-source Version: 2.2d-4 Severity: normal *** Please type your report below this line *** Hello, seems that I'm the only user of loop-aes ;) Okay, building a kernel with laptop:/usr/src/linux# make-kpkg --revision 01 --append-to-version \-nb kernel-image modules-image --added-patches mppe --config oldconfig --initrd gives me the files: laptop:/usr/src# ls *.deb kernel-image-2.6.10-nb_01_i386.deb loop-aes-2.6.10-nb_2.2d-4+01_i386.deb loop-aes-ciphers-2.6.10-nb_2.0i-3+01_i386.deb thinkpad-modules-2.6.10-nb_5.8-1+01_i386.deb When I now install the kernel-image (before I have purged the same version) I get the following message: [...] Setting up kernel-image-2.6.10-nb (01) ... /usr/sbin/mkinitrd: add_modules_dep_2_5: modprobe failed FATAL: Module loop.ko_orig not found. WARNING: This failure MAY indicate that your kernel will not boot! but it can also be triggered by needed modules being compiled into the kernel. [...] These seems to be the consequence of the last bugfix. Going to $MODULDIR/block/drivers and issuing laptop:/lib/modules/2.6.10-nb/kernel/drivers/block# ls -l loop* -rw-r--r-- 1 root root 20597 Mar 29 20:25 loop.ko-orig so after a clean kernel image install I have no loop.ko. (Until now I haven't installed the depending loop-aes-modul) When is this diversion thing issued ? When I install loop-aes or the korresponding kernel-image ? I don't know if this bug would be better directed to initrd-tools ... If you have further questions, no problem :) Greetings Thomas Braun -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing'), (50, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages loop-aes-source depends on: ii build-essential 10.1 informational list of build-essent ii bzip2 1.0.2-5high-quality block-sorting file co ii debhelper 4.2.31 helper programs for debian/rules ii module-assistant 0.8tool to make module package creati -- no debconf information This message was sent using IMP, the Internet Messaging Program. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]