English | 日本語
See Feature overview and usage for a task-oriented tour of everything the tool can do. The Japanese version is here.
Build Debian live ISOs from a single recipe file.
It wraps live-build. Using live-build
directly means learning three separate mechanisms — the config/ tree,
auto/config, and three stages of hooks. This tool takes all of that over and
asks you only what you want to build.
[iso]
name = "mylinux"
[desktop]
environment = "xfce"That is enough to build. It also produces the artifacts you need to distribute an image (checksums, build metadata, GPG signatures), so the whole release workflow fits in one tool.
The UI is available in English and Japanese. It is detected from LANG /
LC_ALL, or set explicitly with --lang en / --lang ja.
- Requirements
- Installation
- Try it in five minutes
- Feature overview and usage
- Recipe reference
- Command reference
- Presets
- Desktop environments
- Distributing an ISO
- How it works
- Persistence
- Troubleshooting
- Contributing
- Verification status
- License
| OS | Debian 12 (bookworm) or 13 (trixie); derivatives should work |
| Python | 3.11 or newer (standard library only) |
| Privileges | root, for building |
| Disk space | 6 GiB minimum, 20 GiB or more to be comfortable |
| Network | access to an APT mirror |
Building requires root, and live-build creates a chroot, so it may not work inside a container. Use a real machine or a VM.
git clone https://github.com/Keychrom/Frosted-ISO-Builder
cd Frosted-ISO-Builder
# Install with its dependencies (recommended)
sudo ./install.sh --with-deps
# Also install the optional tools (QEMU/OVMF, zsync, apt-cacher-ng)
sudo ./install.sh --with-deps --with-additional
# Add just the optional tools later
sudo ./install.sh --with-additional
# Or install the tool only
sudo ./install.sh--with-additional installs tools that are optional but useful. QEMU and
OVMF are used by frosted test / frosted test --uefi, zsync produces the
delta files for [binary] zsync, and apt-cacher-ng speeds up package
downloads on rebuilds. It does not install the required build dependencies, so
normally you should pass it together with --with-deps.
If you skip --with-deps, install these first:
sudo apt install live-build debootstrap xorriso squashfs-tools cpio rsync \
uuid-runtime mtools dosfstools syslinux-common isolinux \
grub-efi-amd64-bin grub-pc-bin fakeroot gnupgOn arm64, use grub-efi-arm64-bin instead of the amd64/x86 GRUB packages.
./install.sh --with-deps picks the right ones for the host architecture.
You can also run it without installing:
python3 bin/frosted --versionUninstall with sudo ./install.sh --uninstall. Packages installed through
apt are left in place; remove them manually if you no longer need them.
# 1. Check the environment. Tells you what is missing.
frosted doctor
# 2. Create a recipe interactively.
frosted init
# 3. Look at the settings before building (no root needed, takes seconds).
frosted gen mylinux.toml
# 4. Build. This takes tens of minutes.
sudo frosted build mylinux.toml
# 5. Check it boots before writing a USB stick.
frosted test mylinux.tomlinit picks up your machine's timezone, keyboard and locale as defaults, so in
most cases you can just press Enter through it.
Start with examples/minimal.toml to confirm the whole
pipeline works. It builds a plain console-only Debian image in about ten minutes.
sudo frosted build examples/minimal.tomlIf you prefer editing in a browser instead of the terminal wizard, start the local GUI:
frosted gui mylinux.tomlIt listens on 127.0.0.1 only and opens your browser. Edit the recipe in a
form, validate it, generate the live-build configuration, and run the
environment check. Building still needs root, so run the command shown in the
GUI in a terminal. Use --no-browser to skip opening the browser and --port
to change the port.
Recipes are TOML. Anything you leave out gets a default, so you only write what you care about.
| Key | Default | Description |
|---|---|---|
name |
(required) | ISO name. Lowercase letters, digits and hyphens |
version |
"1.0" |
Version, used in the output file name |
label |
derived from name |
ISO volume label, up to 32 characters |
distribution |
trixie |
trixie (13), bookworm (12), testing, or sid (forky/unstable aliases also work) |
architecture |
amd64 |
amd64, i386 or arm64 |
output |
derived | Output file name. Defaults to <name>-<version>-<arch>.iso |
publisher |
the tool's name | Publisher recorded in the ISO. Set this if you distribute |
preparer |
the tool's name | Preparer recorded in the ISO. Set this if you distribute |
application |
same as name |
ISO application identifier |
publisher and preparer are written into the ISO and can be read back with
isoinfo -d -i image.iso. They default to this tool's name, so change them to
your own name or project before publishing an image.
testing follows Debian Testing (currently forky), and sid is unstable.
These are development branches: packages move and a build or boot that worked
yesterday can break today. sid has no security archive, so
build.security_mirror is ignored for it.
| Key | Default | Description |
|---|---|---|
hostname |
debian (the wizard offers the ISO name) |
Hostname |
locale |
en_US.UTF-8 |
Locale, e.g. ja_JP.UTF-8 |
timezone |
UTC |
e.g. Asia/Tokyo |
keyboard_layout |
us |
e.g. jp |
keyboard_variant |
empty | For kana input and similar |
keyboard_model |
pc105 |
Usually left alone |
utc |
true |
Treat the hardware clock as UTC |
| Key | Default | Description |
|---|---|---|
name |
user |
User name |
fullname |
Live User |
Display name |
password |
empty | Empty means no password. A $6$... hash also works |
root_password |
empty | Password for root |
default_groups |
empty | Extra groups to join, e.g. sudo,dialout |
autologin |
true |
Log in automatically at boot |
sudo |
true |
Allow passwordless sudo |
| Key | Default | Description |
|---|---|---|
environment |
none |
none / xfce / lxqt / mate / gnome / kde / cinnamon |
session_manager |
automatic | X session. Usually left alone |
extra_packages |
empty | Extra packages for the desktop environment |
wallpaper |
empty | Host image copied into the image and set at login |
[desktop]
environment = "xfce"
wallpaper = "./assets/wallpaper.jpg"Wallpaper is applied at login on Xfce, GNOME, MATE, Cinnamon and LXQt. On KDE it is copied into the image but not set automatically. Supported formats are PNG, JPEG, WebP and SVG.
| Key | Description |
|---|---|
include |
Packages to install |
exclude |
Packages to remove explicitly |
local |
Local .deb files on the host to bundle |
exclude runs apt-get remove after installation. It does not follow
dependencies, so only the packages you name are removed.
local is for packages you build yourself. live-build builds a local
repository from config/packages.chroot/ and installs them with their
dependencies.
[packages]
local = [
"./debs/myapp_1.2.0_amd64.deb",
"./debs/myapp-data_1.2.0_all.deb",
]Keep the file names dpkg produces, ending in _all.deb or
_<architecture>.deb. live-build does not pick up any other name, so
validation rejects them.
| Key | Default | Description |
|---|---|---|
enable_server |
false |
Install openssh-server and enable it at boot |
authorized_keys |
empty | Paths to public key files, on the host |
permit_root_login |
false |
Allow SSH login as root |
password_authentication |
false |
Allow password authentication |
If you set neither keys nor a password, you will not be able to log in, and validation warns you about that combination.
# Copy a file from the host into the image
[[files.copy]]
source = "./assets/motd" # relative to the recipe
target = "/etc/motd" # absolute path inside the image
mode = "0644" # optional
owner = "root:root" # optional (old name: Keychrom)
# Write content directly into the image
[[files.write]]
path = "/etc/skel/.bashrc"
content = '''
export EDITOR=vim
alias ls='ls --color=auto'
'''
mode = "0644"content supports '''-quoted multi-line strings, so you can paste a shell
script in without escaping anything.
If source in a files.copy entry is a directory, its contents are copied.
[scripts]
setup = ["./scripts/install-tools.sh"] # run inside the chroot while building
firstboot = ["./scripts/first-run.sh"] # run on first bootsetup runs as root inside the chroot during the build. Use it to install
packages or adjust settings. If it fails, the build fails.
firstboot runs after boot. Unless you enable persistence, a live system
returns to a clean state on every boot, so in practice this runs every time.
Enable boot.persistence if you need it to run only once.
| Key | Default | Description |
|---|---|---|
append |
empty | Extra kernel parameters, e.g. quiet splash toram |
install_append |
empty | Kernel parameters for the system installed by the installer |
persistence |
false |
Enable persistence |
failsafe_noautologin |
true |
Turn off autologin in the failsafe menu entry |
| Key | Default | Description |
|---|---|---|
workdir |
"build" |
Where live-build runs |
mirror |
http://deb.debian.org/debian/ |
APT mirror. Point this at an internal mirror if you have one |
security_mirror |
http://security.debian.org/... |
Security updates mirror (ignored for sid/unstable) |
archive_areas |
main contrib non-free-firmware |
Archive areas to enable |
compression |
xz |
Archive compression for tar/netboot/source (xz, gzip, bzip2, lzip, none) |
apt_recommends |
false |
Also install recommended packages |
apt_proxy |
empty | e.g. http://192.168.1.10:3142. Makes rebuilds much faster |
cache |
true |
Keep the cache so rebuilds are fast |
firmware |
true |
Include firmware (needed for Wi-Fi and GPUs) |
bootloaders |
syslinux grub-efi |
BIOS and UEFI support |
secure_boot |
auto |
auto, enable or disable |
memtest |
false |
Add a memory test entry |
debootstrap_options |
empty | Passed straight through to debootstrap |
extra_repositories |
empty | Additional APT repositories (deb ... lines) |
repository_keys |
empty | GPG keys for those repositories, installed for apt and copied to /usr/share/keyrings/ |
repositories_in_image |
false |
Keep those repositories in the image's sources list |
firmware_binary |
false |
Include firmware in the installer as well |
initsystem |
systemd |
systemd, sysvinit or none |
initramfs |
live-boot |
live-boot or none |
updates |
unset | Enable the updates suite |
backports |
unset | Enable backports |
proposed_updates |
unset | Enable proposed updates |
security |
unset | Enable the security suite (ignored for sid/unstable) |
source |
unset | Also build source images |
debconf_frontend |
unset | dialog, editor, noninteractive or readline |
debconf_priority |
unset | low, medium, high or critical |
Key files must be named with letters, digits, ., _ or -, and end in
.gpg, .asc or .pgp. They are placed in config/archives/ so apt can use
them while installing packages, and are also copied with the same file name
into /usr/share/keyrings/ in the image for signed-by= entries.
By default, extra repositories are used only while packages are being
installed and are not left in the finished image's sources list. Set
repositories_in_image = true if the live system should also be able to use
that mirror with apt. Keys listed in repository_keys stay in
/usr/share/keyrings/.
[build]
repositories_in_image = true
extra_repositories = [
"deb [signed-by=/usr/share/keyrings/myrepo.gpg] https://repo.example.com/debian stable main",
]
repository_keys = ["./assets/myrepo.gpg"]| Key | Default | Description |
|---|---|---|
backend |
unset | apt, apt-get or aptitude |
secure |
unset | Verify repository signatures |
source_archives |
unset | Include deb-src entries |
indices |
unset | Keep package indices in the image |
options |
empty | One string passed to APT, e.g. --no-install-recommends |
pipeline |
unset | APT pipeline depth |
keyring_packages |
empty | Keyring packages installed for APT |
preferences |
empty | APT pinning, written verbatim to config/archives/frosted.pref |
[build] apt_recommends and [build] apt_proxy remain the settings for
recommends and the HTTP proxy.
When mixing repositories, pin priorities explicitly so an unexpected version does not win.
[apt]
preferences = '''
Package: *
Pin: release a=trixie
Pin-Priority: 100
'''| Key | Default | Description |
|---|---|---|
type |
none |
none, cdrom, netinst, netboot, businesscard or live |
gui |
unset | Use the graphical installer |
distribution |
same as iso.distribution |
Installer release |
preseed |
empty | Host preseed file copied to config/preseed/frosted.cfg |
The installer type must be compatible with [binary] image_type,
bootloaders and the selected image layout. Try a small image first.
| Key | Default | Description |
|---|---|---|
packages |
empty | e.g. linux-image |
flavours |
empty | e.g. ["amd64"] or ["686-pae"] |
| Key | Default | Description |
|---|---|---|
image_type |
iso-hybrid |
iso, iso-hybrid, netboot, tar or hdd |
filesystem |
unset | fat16, fat32, ext2, ext3, ext4 or ntfs |
checksums |
sha256 |
md5, sha1, sha224, sha256, sha384, sha512 or none |
chroot_filesystem |
unset | ext2, ext3, ext4, squashfs, jffs2 or none |
squashfs_compression |
xz |
gzip, lzma, lzo, lz4, xz or zstd |
squashfs_compression_level |
unset | mksquashfs compression level |
initramfs_compression |
unset | bzip2, gzip or lzma |
zsync |
unset | Generate zsync metadata for delta downloads |
win32_loader |
unset | Include the legacy win32-loader |
swap_file_path |
unset | Swap file to create inside the image, e.g. /swapfile |
swap_file_size |
512 |
Swap file size in MB |
[binary]
image_type = "iso-hybrid"
squashfs_compression = "zstd"
squashfs_compression_level = 19
checksums = "sha256"
swap_file_path = "/swapfile"
swap_file_size = 1024[build] compression controls archive compression for tar/netboot/source
images; [binary] squashfs_compression controls the live filesystem inside
an ISO. The swap file is stored inside the image, so it increases both the
ISO size and the space used on the USB stick. It is meant for machines with
little RAM.
| Command | Description |
|---|---|
init |
Create a recipe interactively |
gui |
Edit the recipe in a browser |
gen |
Generate the live-build configuration only (no root needed) |
build |
Build the ISO |
validate |
Check the recipe and the environment |
show |
Show the recipe and the boot parameters |
doctor |
Diagnose the build environment |
presets |
List presets, or show one in detail |
clean |
Remove build products |
shell |
Open a shell in the build chroot |
test |
Boot the ISO in QEMU |
verify |
Verify the checksum and signature of a distributed ISO |
Common combinations:
# Skip the questions and start from a preset
frosted init --preset kiosk --name lobby --output lobby.toml
# Generate the settings and read them by hand
frosted gen mylinux.toml
less mylinux.toml.build/auto/config
# Just the boot parameters
frosted show mylinux.toml --bootappend
# The exact arguments passed to lb config
frosted show mylinux.toml --lb-args
# Remove everything, cache included
frosted clean mylinux.toml --all| Name | Contents |
|---|---|
minimal |
Plain console-only Debian. For your first build |
rescue |
Disk recovery and diagnostic tools, with SSH |
desktop |
Xfce with Firefox and LibreOffice |
kiosk |
Autologin straight into a full-screen browser |
dev |
A full set of build tools, with SSH |
frosted presets kiosk # see what it includes
frosted init --preset kiosk| Key | Environment | Rough size | Display manager |
|---|---|---|---|
none |
None (console) | ~350 MB | — |
xfce |
Xfce | ~1.2 GB | lightdm |
lxqt |
LXQt | ~1.1 GB | sddm |
mate |
MATE | ~2.0 GB | lightdm |
gnome |
GNOME | ~3.0 GB | gdm3 |
kde |
KDE Plasma | ~3.2 GB | sddm |
cinnamon |
Cinnamon | ~2.2 GB | lightdm |
Autologin is configured per display manager. With user.autologin = true you
get an automatic login in every one of them.
Shipping an image means more than the image itself: whoever receives it needs to
be able to tell that it really came from you, and what is in it. build creates
these next to the ISO:
| File | Contents |
|---|---|
SHA256SUMS |
The conventional combined format |
<ISO name>.sha256 |
For handing out on its own |
<ISO name>.build-info.json |
A record of what went into it and how |
<ISO name>.asc |
Detached GPG signature (only with --sign) |
# Build with a signature
sudo frosted build release.toml --sign you@example.combuild-info.json contains the recipe hash, the installed packages and their
versions, the options that were actually used, and the ISO's hash and size. It
lets you trace an image back to the exact recipe it came from.
Ship those files alongside the ISO. The person receiving it can then check everything with one command:
frosted verify mylinux-1.0-amd64.isoverify checks the checksum and the signature, and reports the build metadata.
The result is shown clearly. You can of course also use sha256sum -c SHA256SUMS and gpg --verify directly.
-
[iso] publisherandpreparerset to your name or project -
[iso] versionbumped - no placeholder left in
user.password -
user.autologinanduser.sudoare what you intend -
ssh.authorized_keyscontains no one else's keys -
frosted testboots on both BIOS and UEFI - signed with
--sign
recipe (TOML)
│
│ frosted gen
▼
<work directory>/
├── auto/config ← every option for lb config
├── config/package-lists/*.list.chroot
├── config/includes.chroot/ ← files copied into the image
├── config/hooks/live/*.hook.chroot ← run inside the chroot during the build
└── .frosted-manifest.json ← list of generated files (used for cleanup)
│
│ frosted build
▼
ISO + SHA256SUMS + build-info.json (+ .asc)
The resulting tree is in the format live-build understands, so you can also
build it without this tool: cd <work directory> && sudo lb build.
- Building the
lb configcommand — nearly sixty options, derived from the recipe - Boot parameters —
hostname=,username=,locales=,keyboard-layouts=and friends, spelled correctly (these are easy to get wrong) - Autologin — a different file for lightdm, sddm and gdm3
- Per-user setup at boot — the live user is created at boot time by live-config, so passwords and SSH keys cannot be written at build time. A systemd unit is installed to handle them once the system comes up
- Cleanup — APT caches, logs and machine-id are removed to keep the image small
lb config option names have shifted between live-build versions (singular
versus plural, as in --architecture and --architectures). Before generating
anything, this tool reads lb config --help and picks the spelling your
live-build actually accepts. frosted doctor shows what it found.
That resolution is verified against a real live-build in CI
(tests/test_lb_integration.py).
To keep changes on the USB stick, enable it in the recipe:
[boot]
persistence = trueThat alone is not enough. The stick needs to be prepared as well.
- Create a partition labelled
persistenceon the USB stick - Put a
persistence.confat its root
# Example: /dev/sdb2 is the second partition of the stick
sudo mkfs.ext4 -L persistence /dev/sdb2
sudo mkdir -p /mnt/persist
sudo mount /dev/sdb2 /mnt/persist
echo "/ union" | sudo tee /mnt/persist/persistence.conf
sudo umount /mnt/persist/ union means the whole root is saved. You can narrow it, for example to
/home union.
install.sh copies frosted/ into /usr/local/lib/frosted. Pulling the
repository does not update the installed copy. If gui is reported as an
unknown command, reinstall from the updated clone.
cd Frosted-ISO-Builder
git pull --ff-only origin main
sudo ./install.sh
hash -r
frosted --version # 0.6.0 or newer has the GUI
frosted gui --helpCheck which -a frosted in case an older installation earlier in PATH is
being used. The command name is lowercase frosted (Frosted will not work).
It lists what is missing and how to fix it. Start there.
The full build log is kept in build.log in the work directory. It contains the
raw lb build output, which usually tells you what happened.
less <work directory>/build.logThat is a live-build version difference.
frosted doctor <recipe>The lb options line warns about any setting that will not take effect.
live-build can carry over settings from a previous run. Regenerate just the configuration:
frosted gen <recipe> # regenerate the settings
sudo frosted build <recipe>If that does not help, clear the cache as well:
frosted clean <recipe> --allCheck that the display manager is the one you expected. After a build,
0200-autologin.hook.chroot in the output of frosted gen shows which file it
tries to write.
On a running system, press Ctrl-Alt-F2 at the login screen to reach a console and investigate with the user or root password:
systemctl status frosted-boot-setup
journalctl -u frosted-boot-setupsudo dd if=mylinux-1.0-amd64.iso of=/dev/sdX bs=4M status=progress oflag=syncAlways double-check that /dev/sdX is really your device. The wrong one will
erase everything on it. Use lsblk to confirm before running it.
If you want several ISOs on one stick, Ventoy is a good option.
There are no runtime dependencies. Python 3.11 or newer is all you need.
git clone https://github.com/Keychrom/Frosted-ISO-Builder
cd Frosted-ISO-Builder
# Tests (standard library unittest only)
python3 -m unittest discover -s tests -t . -v
# Run without installing
python3 bin/frosted --help| Path | Role |
|---|---|
frosted/recipe.py |
The recipe model and validation. The single source of truth |
frosted/catalog.py |
Desktop environments and presets. Adding one means touching only this file |
frosted/backend/livebuild.py |
Recipe to live-build tree. The core of the tool |
frosted/preflight.py |
Pre-build environment checks |
frosted/release.py |
Checksums, build metadata and signing |
frosted/wizard.py |
The interactive wizard |
frosted/i18n.py, i18n_en.py |
UI translation. Japanese source strings are the keys |
frosted/cli.py |
The command line |
- Always write generated files with LF endings. CRLF makes shell scripts
fail on Linux with
bad header: /bin/sh^M(seenewline="\n"in_write_file). - Never drop
noautofromauto/config. Without it live-build recurses. - Do not generate
auto/buildorauto/clean. live-build callsauto/scripts automatically, so callinglb buildfrom inside one risks recursion. - If you add a recipe setting, test that it reaches the output.
RecipeKnobsReachTheOutputTestexists for exactly that. - Do not hardcode
lb configoption names. Add a candidate toOPTION_ALIASESand the right spelling is selected at runtime. - Add UI text to the catalog.
tests/test_i18n.pyruns the CLI in English and fails if any Japanese is left in the output.
Being straight with you.
Verified (the automated test suite plus CI)
- Reading, writing and validating recipes, including rejecting bad input and round-tripping TOML
- The contents of the generated live-build tree
- The syntax of every generated shell script, parsed with
sh -n - Execution of
auto/configagainst a stublb, checking that arguments and their quoting survive intact - That generated files use LF endings
- Checksum and build metadata generation, and detection of corruption
- Tree generation for every preset and every desktop environment
- That a real live-build accepts the generated configuration (the CI
live-buildjob feeds it tolb config) - That the English UI contains no leftover Japanese
- The GUI HTTP API (authentication, reading and writing, validation, generation and doctor)
Not verified
- A real ISO build has never been run.
sudo frosted buildhas not yet been executed on a Debian machine. - Booting a built ISO
- Autologin, SSH key deployment and password setting on real hardware. The boot-time systemd unit has only been checked as far as it being installed.
Do your first build with examples/minimal.toml. Once
that works, the rest is adding packages and a desktop environment.
If something goes wrong, build.log and the output of frosted doctor will
usually tell you why.