As elementary OS is built with the Debian version of live-build
, not the Ubuntu patched version, it's easiest to build an elementary .iso in a Debian VM or container. This prevents messing up your host system too.
The following example assumes you have Docker correctly installed and set up, and that your current working directory is this repo. When done, your image will be in the builds
folder.
Configure the channel (stable, daily) in the configuration file (etc/terraform-amd64.conf
or etc/terraform-arm64.conf
based on your host architecture), then run:
docker run --rm --privileged -it \
-v /proc:/proc \
-v ${PWD}:/working_dir \
-w /working_dir \
debian:latest \
./build.sh
More information about the concepts behind live-build
and the technical decisions made to arrive at this set of tools to build an .iso can be found on the wiki.