====== Introduction ======
This article describes how to build your own ubuntu/debian distribution.
== Links ==
* [[https://help.ubuntu.com/community/LiveCDCustomizationFromScratch]]
== Hardware used : ==
* Roboard RB-100 : [[http://www.roboard.com/RB-100.htm]]
* USB Key or SD card
* A desktop PC running Ubuntu >= 12.04
* An internet connection.
== Downloads : ==
* {{:make_distro.tar.gz|}}
* [[http://www.roboard.com/Files/RB-100/linux-image-2.6.34.10-vortex86-sg_1.2_i386.zip|Kernel from DMP]]
====== Dependencies ======
$ sudo apt-get install realpath whois qemu-kvm-extras-static squashfs-tools extlinux mbr
====== Usage ======
$ ./make_distro.sh -h
This script build custom Ubuntu/Debian distributions.
./make_distro.sh [-h] [-a ] [-d ] [-o ] [-p ] [-t ] [-u ] [-v] [-r]
Options:
-a Action : install or uninstall.
-b Target device
-h Display this help message
-d Bootstrap path
-o .deb packages not in distro. Use ',' as separator.
-p Distro packages to use. Use ',' as separator.
-t target Target achitecture (same as host by default)
-u 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
====== Example ======
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