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

Recompilar kernel. Problema com initrd.



Como vai galera,
 
estou com o seguinte problema:
 
-Instalei o debian Woody 3.0 r2, padrão sem nehum pacote adicional,
-Depois instalei o kernel-package para fazer a recompilação do kernel.
-Instalei o fonte do kernel 2.4.20
-Fiz as configurações necessarias no .config dentro do diretorio do fonte do kernel
-mandei recompilar usando o comando: make-kpkg --append-to-version "-new" --initrd --us --uc kernel_image (que cria um kernel instalavel .deb indicando que junto com o kernel deve ser criado um arquivo initrd).
-depois de criado o novo-kernel.deb eu o instalei com o: dpkg -i novo-kernel.deb
 
Até aí tudo bem...
 
o problema começou quando ele deu a seguinte mensagem de erro:
 
Setting up kernel-image-2.4.20-new (10.00.Custom) ...
Failed to create initrd image.
dpkg: error processing kernel-image-2.4.20-new (--configure):
subprocess post-installation script returned error exit status 2
 
O sistema funciona normalmente, mas quando eu mando instalar um novo pacote pelo apt-get ele reclama que não consegue achar o initrd, e pede pra reiniciar para o arquivo de modulos ser criado corretamente...detalhe eu ja recomplilei várias vezes o mesmo kernel inclusive atraves do método padrao (make dep, make clean, make bzImage, make modules, make modules_install, etc..), e o kernel que está em uso nem é mais este kernel que ele está reclamando do initrd.
 
Setting up kernel-image-2.4.20-new (10.00.Custom) ...
 You are attempting to install a kernel version that is the same as
 the version you are currently running (version 2.4.20-new). The modules
 list is quite likely to have been changed, and the modules dependency
 file /lib/modules/2.4.20-new/modules.dep needs to be re-built. It can
 not be built correctly right now, since the module list for the
 running kernel are likely to be different from the kernel installed.
 I am creating a new modules.dep file, but that may not be
 correct. It shall be regenerated correctly at next reboot.
 
 I repeat: you have to reboot in order for the modules file to be
 created correctly. Until you reboot, it may be impossible to load
 some modules. Reboot as soon as this install is finished (Do not
 reboot right now, since you may not be able to boot back up until
 installation is over, but boot immediately after). I can not stress
 that too much. You need to reboot soon.

Alguem ja passou por situação semelhante ou sabe como me ajudar?
 
[ ]´s
 
 
__________________
Leonardo Mendes
 

Reply to: