Grml Kernel

From FAIWiki

Jump to: navigation, search

Since some newer hardware won't work properly with Lenny's 2.6.26 kernel, and it's not always easy to get (working) AUFS modules for newer Debian kernels, it might be easier to use a GRML kernel, since GRML also uses AUFS. Here's how I did it for 2.6.28, note that 2.6.31-grml/2.6.31-grml64 is now considered stable.

Step-by-step

1. In $FAI_ETC_DIR/NFSROOT, remove any other linux-image or aufs-modules package and add:

PACKAGES aptitude I386
linux-image-2.6.28-grml
aufs-modules-2.6.28-grml

PACKAGES aptitude AMD64
linux-image-2.6.28-grml64
aufs-modules-2.6.28-grml64

2. In $FAI_ETC_DIR/apt/sources.list add

deb http://deb.grml.org/ grml-stable main

3. To make sure no unwanted packages get taken from grml, create $FAI_ETC_DIR/apt/apt.conf with the following contents:

APT::Default-Release "stable";

4. In order to be able to run custom scripts whenever the NFS Root is regenerated, add the following line to $FAI_ETC_DIR/make-fai-nfsroot.conf:

NFSROOT_HOOKS="$FAI_ETC_DIR/nfsroot-hooks"

5. Finally, create an executable file $FAI_ETC_DIR/nfsroot-hooks/10-gen-initrd with the following contents:

#! /bin/bash

echo "Creating initrd for 2.6.28-grml64..."
$ROOTCMD update-initramfs -k 2.6.28-grml64 -t -c
echo "Copying custom initrd to TFTP root..."
cp -pv $NFSROOT/boot/initrd.img-* $TFTPROOT

6. Now you are done and can rerun make-fai-nfsroot and modify your PXE configuration accordingly.

See also

External References

Personal tools