-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-05-09 00:20, David C. Rankin wrote:
To me it seems like a 'chicken and the egg problem'. You need the modules.dep file from the /lib/modules/<newkernel>, but you can't create it with depmod -a until you boot the kernel. (I know this is done all the time, but I can deduce where in the process this takes place) If you wait until you are ready to try and boot the kernel -> your hosed with this problem.
I think you have to, with another kernel running, run "depmod --basedir /lib/modules/version" pointing to where the new kernel version is installed. It probably also needs "--filesyms System.map" Actually, we should be able to determine what a suse kernel does to create this file: the kernel rpm contains a POSTIN script to create depmod and initrd. Mmm... I'm not sure. In a kernel of 11.2 I see: # Add symlinks of compatible modules to /lib/modules/$krel/weak-updates/, # run depmod and mkinitrd wm2=/usr/lib/module-init-tools/weak-modules2 if [ -x $wm2 ]; then if [ 1 = 1 ]; then /bin/bash -${-/e/} $wm2 --add-kernel 2.6.31.12-0.2-desktop else nvr=kernel-desktop-2.6.31.12-0.2.1 rpm -ql $nvr | /bin/bash -${-/e/} $wm2 --add-kernel-modules 2.6.31.12-0.2-desktop fi else echo "$wm does not exist, please run depmod and mkinitrd manually" >&2 fi Dunno, but it appears that the weak-modules2 script does it. Maybe in 11.0 they do it differently, but have a look at one of the official kernel's rpms to get an idea. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkvl85sACgkQU92UU+smfQVhhQCfUqyhakJLZfXqOfGxMeGdq+Of cugAnRDP0uJsXXtObOYcLj0BCjrOwZjB =OsNJ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org