You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jim Paris 5b2ac4ba8b Switch to 16.04.1 4 years ago
.gitignore Fix qemu options so a full install really works 5 years ago
README Update README 4 years ago
backup.sh Add scripts to backup/restore FS directory 5 years ago
buildiso.sh Documentation 5 years ago
cleanup.sh Fix some deficiencies in enter.sh 5 years ago
config Switch to 16.04.1 4 years ago
config-16.04.1 Switch to 16.04.1 4 years ago
customize-inner.sh Ensure that we have a current kernel package installed 4 years ago
customize.sh Add stuff to /etc/hosts after install or LiveCD boot 5 years ago
enter.sh Small bugfixes and tweaks 5 years ago
extractiso.sh Grab ISO from parent directory if it's there 5 years ago
full-rebuild.sh Fix full-rebuild.sh 5 years ago
nilmbuntu.png Start reworking things for systemd-based 16.04 5 years ago
preseed.cfg Add nasty Ubiquity hacks to force username, set password 5 years ago
restore.sh Add scripts to backup/restore FS directory 5 years ago
run.sh Small bugfixes and tweaks 5 years ago
splash.png Start reworking things for systemd-based 16.04 5 years ago

README

Tools to customize an Ubuntu Live CD.  Many parts of this will end up
being version-specific. The host machine must be running systemd,
since the image is executed inside a systemd-nspawn container.

Set up host machine, which must be running a recent systemd:

sudo apt install squashfs-tools xorriso isolinux systemd-container iptables
sudo systemctl start systemd-networkd

Choose a config:

export BUILD_CONFIG=16.04

Download and extract the original ISO:

./extractiso.sh

Apply customizations, both to the outer ISO and the inner image.
This will also run customizer-inner.sh inside a container:

./customize.sh

(Optional) Run and enter a shell in the container, for manual customization:

./enter.sh

Build the new ISO:

./buildiso.sh

Boot the ISO in QEMU with a blank HDD, to test and install:

./run.sh -c

Boot QEMU with the same HDD image as above, to test an "installed" system:

./run.sh -d

Remove everything but the ISOs:

./cleanup.sh

Notes:

- A more proper way to build a distro from scratch would be something
like one of these, except that they're out of date:

http://www.mythbuntu.org/development/developer-cheatsheet (2010)
https://github.com/squibbylinux/squibby-build (2012)