This chapter is mandatory for building the livecd. The livekey only need an new kernel if you haven't enabled support for USB,EXT2/EXT3,SCSI and initial ramdisk
After having patched your kernel sources with aufs, you will have to configure your kernel to enable the new features.
Use your favorite configuration tool, like “make menuconfig”.
As you will use your actual LFS system and maybe make a few changes in it, you should now backup your present kernel config, located in /boot/config-<kernel-version>.
Enable “Initial RAM filesystem and RAM disk (initramfs/initrd) support” in “General setup”.
If you want your live system to boot on most architectures, you will have to enable Block layer SG support v4 (in menuconfig->Enable the block layer).
In “Processor type and features”, select “386” as “Processor family”
You will have to enable loopback device support and ramdisk support in “Device Drivers->Block devices”
If you plan to build a live usb key, you will have to say yes to “USB support” and to “Support for Host-side USB”, as well as “UHCI HCD support”, “OHCI HCD support” and “EHCI HCD (USB 2.0) support”. Say yes (y) to “USB Mass Storage support” also.
You will also need “SCSI device support: SCSI disk support”.
If you plan to build a live cd or dvd, make sure you build the following modules direct into the kernel (* not m) :
*“SCSI device support->SCSI CDROM support”
*“SCSI generic support”
*“ISO 9660 CDROM file system support” in CD-ROM/DVD Filesystems
*“PATA support.”
Last, but not least, enable AUFS and SquashFS, in “File systems->Miscellaneous filesystems”
After configuration, just build and install your kernel.