Live CD Kernel

Compiles the Linux kernel with UnionFS and SquashFS support.

kernel-live

Installation
cp -v ../$(readlink ../unionfs-2.6_for_3.16.1.diff.gz). gzip -d unionfs-2.6_for_3.16.1.diff.gz patch -Np1 -i unionfs-2.6_for_3.16.1.diff
 * 1) Add UnionFS to the kernel

echo "CONFIG_UNION_FS=y"                 >> .config echo "# CONFIG_UNION_FS_XATTR is not set" >> .config echo "# CONFIG_UNION_FS_DEBUG is not set" >> .config
 * 1) Add UnionFS to the kernel configuration

if [ "$(cat .config | grep '# CONFIG_SQUASHFS is not set')" ]; then sed -i "s@# CONFIG_SQUASHFS is not set@@g" .config
 * 1) Ensure SquashFS is selected in the kernel configuration

echo "CONFIG_SQUASHFS=y"                               >> .config echo "CONFIG_SQUASHFS_FILE_CACHE=y"                    >> .config echo "# CONFIG_SQUASHFS_FILE_DIRECT is not set"        >> .config echo "CONFIG_SQUASHFS_DECOMP_SINGLE=y"                 >> .config echo "# CONFIG_SQUASHFS_DECOMP_MULTI is not set"       >> .config echo "# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set" >> .config echo "# CONFIG_SQUASHFS_XATTR is not set"              >> .config echo "CONFIG_SQUASHFS_ZLIB=y"                          >> .config echo "CONFIG_SQUASHFS_LZO=y"                           >> .config echo "CONFIG_SQUASHFS_XZ=y"                            >> .config echo "# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set"     >> .config echo "# CONFIG_SQUASHFS_EMBEDDED is not set"           >> .config echo "CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3"           >> .config fi

make
 * 1) Compile

cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.16.1-live cp -v .config /boot/config-3.16.1-live
 * 1) Install