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

Re: compilare kernel con --initrd



On 23/05/09 11:00, Jack Malmostoso wrote:
On Fri, 22 May 2009 21:10:15 +0200, Edoardo Panfili wrote:

In passato avevo compilato il kernel senza molti problemi. Cosa ho
sbagliato?

Niente di particolare. kernel-package e' cambiato ultimamente, e (IMHO)
non per il meglio.
Ho anche cercato segnalazioni di bug, l'unico in relazione sembra essere http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523835


In particolare, dalla man page di make-kpkg:

--initrd
If make-kpkg is generating a kernel-image  package,  arrange  to
convey  to the hook scripts run from the post installation main‐
tainer scripts that this image requires an initrd, and that  the
initrd  generation  hook scripts should not short circuit early.
Without this option, the example initramfs hook scripts  bundled
in with kernel-package will take no action on installation.  The
same effect can be achieved by setting the environment  variable
INITRD  to  any  non empty value.  Please note that unless there
are hook scripts in /etc/kenel or added  into  the  hook  script
parameter  of  /etc/kernel-img.conf.   no initrd will be created
(the bundled in example scripts are just examples -- user action
is required before anything happens).


Questa cosa l'avevo letta e ho messo i due script in
/etc/kernel/postinst.d e in /etc/kernel/postrm.d, non ho impostato la variabile INITRD, magari riprovo anche così

Altra cosa che no notato (magari però è del tutto irrilevante) è che il mio kernel è "-386" mentre quelli di Debian "-686".


Edoardo


Reply to: