Enable NFS Export of AUFS pool in Ubuntu 12.04

Reference

This is taken from the Reference above at the latter part for Ubuntu variation

Get the source for Precise git clone git://kernel.ubuntu.com/ubuntu/ubuntu-precise.git

Copy the existing Kernel package and other control scripts cp -a /usr/share/kernel-package ubuntu-package

cp ubuntu-precise/debian/control-scripts/{postinst,postrm,preinst,prerm} ubuntu-package/pkg/image/

cp ubuntu-precise/debian/control-scripts/headers-postinst ubuntu-package/pkg/headers/

cd ubuntu-precise

Get the existing config (Copy the kernel config file from your existing system to the kernel tree. This is the file that has the NFS export for AUFS turned off) cp /boot/config-`uname -r` .config

Bring the config file up to date. Answer any questions that get prompted. Unless you know you are interested in a particular feature, accepting the default option by pressing Enter should be a safe choice: make oldconfig

Change the NFS export of AUFS flag in the ncurses screen here (Do a search, i.e. / to find where aufs is) make menuconfig

Clean the kernel source directory make clean

Compile the source (Build the linux-image and linux-header .deb files using a thread per core + 1. This process takes a lot of time) CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-customsds5 --overlay-dir=$HOME/linux/ubuntu-package kernel_image kernel_headers

Change to one directory level up (this is where the linux-image and linux-header .deb files were put): cd ..

Now install the .deb files. In this example, the files are linux-image-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb and linux-headers-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb. You may receive warnings about '/lib/firmware/2.6.24-rc5-custom/' - this is expected and will only be problematic if the driver you are trying to test requires firmware: sudo dpkg -i linux-image-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb

sudo dpkg -i linux-headers-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb

You are now ready to boot into your new kernel. Just make sure you select the new kernel when you boot: sudo reboot