[Bug 255816] New: mkinitrd has a FATAL error when dealing with modules
https://bugzilla.novell.com/show_bug.cgi?id=255816 Summary: mkinitrd has a FATAL error when dealing with modules Product: SUSE Linux 10.1 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: Curt.Blank@curtronics.com QAContact: qa@suse.de I get the following FATAL error from mkinitrd because the modules it wants which are not in the INITRD_MODULES variable but it decides it needs them even though they are gen'd into the kernel. It appears it make the initrd file but without all necessary components. # mkinitrd -k vmlinuz-2.6.16.27-0.9-smp-bnfsrvr.new -i initrd-2.6.16.27-0.9-smp-bnfsrvr.tmp Root device: /dev/md0 (mounted on / as unknown) Module list: raid0 raid1 raid5 linear (xennet xenblk) Kernel image: /boot/vmlinuz-2.6.16.27-0.9-smp-bnfsrvr.new Initrd image: /boot/initrd-2.6.16.27-0.9-smp-bnfsrvr.tmp Shared libs: lib64/ld-2.4.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0 lib64/libc-2.4.so lib64/libdl-2.4.so lib64/libhistory.so.5.1 lib64/libncurses.so.5.5 lib64/libpthread-2.4.so lib64/libreadline.so.5.1 lib64/librt-2.4.so Cannot determine dependencies of module raid0. Is modules.dep up to date? Cannot determine dependencies of module raid1. Is modules.dep up to date? Cannot determine dependencies of module raid5. Is modules.dep up to date? Cannot determine dependencies of module linear. Is modules.dep up to date? Cannot determine dependencies of module sata_nv. Is modules.dep up to date? Driver modules: none Filesystem modules: WARNING: Couldn't open directory /var/tmp/mkinitramfs.OZ8828/mnt/lib/modules/2.6.16.27-0.9-smp-bnfsrvr: No such file or directory FATAL: Could not open /var/tmp/mkinitramfs.OZ8828/mnt/lib/modules/2.6.16.27-0.9-smp-bnfsrvr/modules.dep.temp for writing: No such file or directory Including: initramfs md(mdconf) mdadm 9129 blocks # So I modifed mkinitrd (see below) and now it works properly. # mkinitrd -k vmlinuz-2.6.16.27-0.9-smp-bnfsrvr.new -i initrd-2.6.16.27-0.9-smp-bnfsrvr.tmp Root device: /dev/md0 (mounted on / as unknown) Module list: raid0 raid1 raid5 linear (xennet xenblk) Kernel image: /boot/vmlinuz-2.6.16.27-0.9-smp-bnfsrvr.new Initrd image: /boot/initrd-2.6.16.27-0.9-smp-bnfsrvr.tmp Shared libs: lib64/ld-2.4.so lib64/libacl.so.1.1.0 lib64/libattr.so.1.1.0 lib64/libc-2.4.so lib64/libdl-2.4.so lib64/libhistory.so.5.1 lib64/libncurses.so.5.5 lib64/libpthread-2.4.so lib64/libreadline.so.5.1 lib64/librt-2.4.so Cannot determine dependencies of module raid0. Is modules.dep up to date? Cannot determine dependencies of module raid1. Is modules.dep up to date? Cannot determine dependencies of module raid5. Is modules.dep up to date? Cannot determine dependencies of module linear. Is modules.dep up to date? Cannot determine dependencies of module sata_nv. Is modules.dep up to date? Driver modules: none Filesystem modules: Including: initramfs md(mdconf) mdadm 9135 blocks Here is the patch: *** mkinitrd.org Fri Feb 16 17:23:51 2007 --- mkinitrd Mon Mar 19 09:46:02 2007 *************** *** 2491,2494 **** --- 2491,2495 ---- fi + test -d $tmp_mnt/lib/modules/$kernel_version || mkdir -p $tmp_mnt/lib/modules/$kernel_version ( cd $tmp_mnt; /sbin/depmod -b $tmp_mnt -e -F $map $kernel_version ) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255816 jeffm@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel- |hare@novell.com |maintainers@forge.provo.nove| |ll.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=255816 hare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from hare@novell.com 2007-03-23 03:46 MST ------- Fixes are included for the next openSUSE release (10.3). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com