HOWTO on using live-build to create 12.04 images
Regarding the Ubuntu process used to build the 12.04 images available at http://
What version of Ubuntu is used? lucid/natty/
What versions of live-build, livecd-rootfs, debootstrap (and any other necessary packages) are used?
(include any apt-sources/ppas that aren't in main, restricted, universe or multiverse)
What lb config is used? (Is it just a specific version of livecd-rootfs or is it a particular ppa/bzr branch?
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- 2012-06-12
- Last reply:
- 2012-06-23
I'd use Precise, not only is it the latest stable release, it is also LTS.
I'm actually looking for the process used by Canonical to build the official isos, not to create my own distro...
Take a look at the script I'm using now:
#!/bin/bash
# echo out everything to make it easier to understand whats happening while it runs
set -x
# I run this on a 12.04 host, but we are debootstrapping a clean 12.04 in /dev/shm
# to make sure this is exactly the ubuntu release, apt-sources, and package versions we need to create the isos
# host needs debootstrap
apt-get install -y debootstrap
# I have a lot of memory, so I run builds in shm, change these first three lines
mount -o remount,dev /run/shm # by default they mount nodev
export PRECISE_
mkdir -p $PRECISE_CHROOT
# if this gets run twice, don't debootstrap again if /dev exists within the chroot
if [ ! -d $PRECISE_CHROOT/dev ] ; then
debootstrap --arch amd64 precise $PRECISE_CHROOT http://
mount proc $PRECISE_
mount sysfs $PRECISE_CHROOT/sys -t sysfs
cp /etc/hosts $PRECISE_
fi
# if this gets run twice, don't install livecd-rootfs (depends on live-build in precise)
if [ ! -f $PRECISE_
chroot $PRECISE_CHROOT /usr/bin/apt-get install -y livecd-rootfs
fi
# create a live-build area within our new precise-chroot
export LIVE_BUILD=
mkdir -p $LIVE_BUILD/
# copying in the livecd-
# but it's more cargo culting than anything... can I get some direction here?
cp -a $PRECISE_
# generates ./config/* based on the auto config from livecd-rootfs
chroot $PRECISE_CHROOT bash -c 'cd lb ; PROJECT=ubuntu \
SUITE=precise \
ARCH=amd64 \
BINARYFORMAT=iso \
LB_PARENT_
LB_PARENT_
LB_PARENT_
LB_PARENT_
LB_PARENT_
LB_MIRROR_
LB_MIRROR_CHROOT="http://
chroot $PRECISE_CHROOT bash -c 'cd lb ; lb build'
I'm basing this appoach based on Colin Wilson's post to ubuntu-devel / debian-live @ http://
That's Colin Watson, not Colin Wilson.
| Colin Watson (cjwatson) said : | #6 |
We used livecd-rootfs on precise, which contains live-build configuration in live-build/, driven from the BuildLiveCD script. That's configured to only build the squashfs parts; the ISO images were built using https:/
| Hippie Hacker (hippiehacker) said : | #7 |
Thanks Colin, I looked at those two repos but wasn't able to get BuildLiveCD to work.
https:/
Could you give a bit of direction to the use/config of the live-build + BuildLiveCD using the ubuntu-cdimage and debian-cd/ubuntu repos? I wasn't able to cobble it together on my own.
Can you help with this problem?
Provide an answer of your own, or ask Chris McClimans for more information if necessary.

