trouble getting fai to install a kernel image

Mike Horansky moho at stanford.edu
Fri Dec 19 13:00:45 CET 2003


Hello again,

Do kernels that are to be installed by FAI need to not have an initrd?
I made sure the chroot and nfsroot have initrd-tools installed, but it
appears that the process is failing:

<><><>
Selecting previously deselected package kernel-image-2.4.20-grsec-1.9.9e.
Unpacking kernel-image-2.4.20-grsec-1.9.9e (from .../kernel-image-2.4.20-grsec-1.9.9e_10.00.Custom_i386.deb) ...

You are attempting to install an initrd kernel image (version 2.4.20-grsec-1.9.9
e)
This will not work unless you have configured your boot loader to use
initrd. (An initrd image is a kernel image that expects to use an INITial 
Ram Disk to mount a minimal root file system into RAM and use that for
booting).
As a reminder, in order to configure lilo, you need to
add an 'initrd=/initrd.img' to the image=/vmlinuz
stanza of your /etc/lilo.conf
I repeat, You need to configure your boot loader. If you have already done
so, and you wish to get rid of this message, please put
  `do_initrd = Yes'
in /etc/kernel-img.conf. Note that this is optional, but if you do not, 
you'll contitnue to see this message whenever you install a kernel 
image using initrd.
Do you want to stop now? [Y/n]Ok, Aborting
dpkg: error processing /fai/files/packages/kernel-image-2.4.20-grsec-1.9.9e_10.00.Custom_i386.deb (--unpack):
 subprocess pre-installation script returned error exit status 
<><><>



It also fails if I try it manually:

<><><>
dpkg  --root=/tmp/target -i kernel-image-2.4.20-grsec-1.9.9e_10.00.Custom_i386.deb 
(Reading database ... 10235 files and directories currently installed.)
Preparing to replace kernel-image-2.4.20-grsec-1.9.9e 10.00.Custom (using kernel-image-2.4.20-grsec-1.9.9e_10.00.Custom_i386.deb) ...
Unpacking replacement kernel-image-2.4.20-grsec-1.9.9e ...
Setting up kernel-image-2.4.20-grsec-1.9.9e (10.00.Custom) ...
awk: cannot open /proc/filesystems (No such file or directory)
/usr/sbin/mkinitrd: Cannot determine root file system
Failed to create initrd image.
dpkg: error processing kernel-image-2.4.20-grsec-1.9.9e (--install):
 subprocess post-installation script returned error exit status 29
Errors were encountered while processing:
 kernel-image-2.4.20-grsec-1.9.9e
<><><>

I've put all of the logs in http://www.stanford.edu/~moho/fai/

A random debian stock kernel I tried also wishes to install an initrd.

-- 
-Mike Horansky, ITSS/TSS/Computing Systems (Unix)
 moho at stanford.EDU

OPINIONS EXPRESSED BY ME ARE NOT NECESSARILY SHARED BY MY EMPLOYERS.



More information about the linux-fai mailing list