This article describes how to build your own ubuntu/debian distribution.
$ sudo apt-get install realpath whois qemu-kvm-extras-static squashfs-tools extlinux mbr
$ ./make_distro.sh -h
This script build custom Ubuntu/Debian distributions.
./make_distro.sh [-h] [-a <action>] [-d <path>] [-o <deb_packages>] [-p <packages>] [-t <target>] [-u <unwanted_packages>] [-v] [-r]
Options:
-a <action> Action : install or uninstall.
-b <device> Target device
-h Display this help message
-d <path> Bootstrap path
-o <deb_packages> .deb packages not in distro. Use ',' as separator.
-p <packages> Distro packages to use. Use ',' as separator.
-t target Target achitecture (same as host by default)
-u <unwanted_packages> Packages to remove after bootstrap.
-v Verbose mode
-r Read only distro
You can customize other options by editing the script :
ARCH=i386 DEBIAN_DISTRO=ubuntu DEBIAN_VERSION=precise
sudo ./make_distro.sh -a install -p ubuntu-standard,linux-generic -o linux-image-2.6.34.10-vortex86-sg_1.2_i386.deb -b /dev/mmcblk0