[opensuse-factory] Modules.dep file
Yesterday I update to OSS alpha 5, and got the problem with the grub (Bug 283709), after reinstalling the kernel, it has removed the previous kernel version. After trying to restore the grub with a boot cd from OSS 10.2 beta (I do'nt has any cd of OSS 10.3 alpha), and it replaced the actual kernel 2.6.22 with the 2.6.18, and it do'nt work. How can I create the initrd and the modules.dep files for the kernel 2.6.22 (OSS 10.3 alpha5) without his cd boot? One initrd file was created using the restoring option with a cd of OSS 10.2 beta2, but I do'nt know if it's right. Someone can send me the file modules.dep for an Athlon XP system? Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
* Juan Erbes
Yesterday I update to OSS alpha 5, and got the problem with the grub (Bug 283709), after reinstalling the kernel, it has removed the previous kernel version. After trying to restore the grub with a boot cd from OSS 10.2 beta (I do'nt has any cd of OSS 10.3 alpha), and it replaced the actual kernel 2.6.22 with the 2.6.18, and it do'nt work. How can I create the initrd and the modules.dep files for the kernel 2.6.22 (OSS 10.3 alpha5) without his cd boot? One initrd file was created using the restoring option with a cd of OSS 10.2 beta2, but I do'nt know if it's right.
The modules.dep file is created by "depmod". Use "depmod 2.6.22" (I guess it's "2.6.22-default" or something like this, it must be the name of the /lib/module/2.6.22* directory to create a module dependency file for that kernel version. The initrd is generated using the 'mkinitrd' script. I must admit that I don't really know what you did. How did you "reinstall" the kernel. If you use "rpm -U", it's clear that all other kernels get removed. Use "rpm -i" in that case if you want to have multiple kernel versions installed at the same time. Thanks, Bernhard --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
2007/6/24, Bernhard Walle
* Juan Erbes
[2007-06-24 19:52]: Yesterday I update to OSS alpha 5, and got the problem with the grub (Bug 283709), after reinstalling the kernel, it has removed the previous kernel version. After trying to restore the grub with a boot cd from OSS 10.2 beta (I do'nt has any cd of OSS 10.3 alpha), and it replaced the actual kernel 2.6.22 with the 2.6.18, and it do'nt work. How can I create the initrd and the modules.dep files for the kernel 2.6.22 (OSS 10.3 alpha5) without his cd boot? One initrd file was created using the restoring option with a cd of OSS 10.2 beta2, but I do'nt know if it's right.
The modules.dep file is created by "depmod". Use "depmod 2.6.22" (I guess it's "2.6.22-default" or something like this, it must be the name of the /lib/module/2.6.22* directory to create a module dependency file for that kernel version. The initrd is generated using the 'mkinitrd' script.
Yes, I know those commands, but it only work right if the system was booted with a kernel installed on it. I do'nt know how to execute it if boot from a cd in rescue mode (I do'nt has any cd of OSS 10.3 alpha). The right way, I mean is download the iso from first cd of OSS 10.3 alpha 5, burning it and make the restoration of the system booting from it, but now mi adsl do'nt works (thanks to Timofonica). Then I asked if someone can send me the modules.dep from an x86 system. The exact version of the kernel is 2.6.22-rc4-git6-2-default. If I lograte to boot with the installed kernel, then I can recosntruct the modules.dep. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
The problem was resolved. I used the modules.dep from a old version installed in the system, have copied to /lib/modules/2.6.22-rc4-git6-2-default/ and edited replacing the references from the old kernel to 2.6.22-rc4-git6-2-default. Then I lograted to boot and have make a depmod -aq and mkinitrd. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (2)
-
Bernhard Walle
-
Juan Erbes