Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

linux-live-iso-builder

БесплатноБез исполняемых скриптовНе проверен

Build a custom Linux live CD/USB ISO (Debian live-build, Ubuntu, Arch archiso, Fedora, Alpine or Buildroot): packages, branding, persistence, BIOS+UEFI boot…

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

Об этом скилле

Linux Live ISO Builder

Goal: a bootable, reproducible live ISO built from a version-controlled config, not hand-edited images. Reply in the user's language.

1. Settle the brief first

Ask (or infer) and write down: purpose (rescue, privacy, education, kiosk, gaming, pentest lab, installer), base distro the user knows, target hardware (x86_64 / ARM, BIOS / UEFI / Secure Boot), desktop or CLI, size limit (CD 700 MB, DVD 4.7 GB, USB), persistence needed, languages and keyboard (e.g. Persian layout and a Persian font such as Vazirmatn), included software, branding.

2. Pick the toolchain

Base Tool When
Debian live-build (lb config, lb build) Default: stable, well documented, iso-hybrid
Ubuntu live-build or Cubic (GUI remaster) Ubuntu packages, quick remaster
Arch archiso (mkarchiso) Rolling, minimal, full control
Fedora kiwi-ng or livemedia-creator Fedora/RHEL ecosystem
Alpine mkimage.sh (aports/scripts) Tiny, RAM-based
From scratch Buildroot / Linux From Scratch Embedded or learning; much more work

Recommend Debian live-build unless the user has a reason otherwise.

3. Where it runs

Building needs root on a Linux host (chroot, loop mounts, squashfs). A sandboxed workspace usually cannot do loop mounts, so: write the full config and a build.sh here, then the user runs it on their Linux machine, a VM, or a privileged container (docker run --privileged debian:stable). Say this up front.

4. Debian live-build recipe

sudo apt install live-build qemu-system-x86 ovmf
mkdir myiso && cd myiso
lb config \
  --distribution bookworm \
  --archive-areas "main contrib non-free non-free-firmware" \
  --binary-images iso-hybrid \
  --debian-installer none \
  --bootappend-live "boot=live components quiet splash" \
  --iso-application "MyLive" --iso-volume "MyLive"
  • Packages: config/package-lists/desktop.list.chroot (one package per line, e.g. task-xfce-desktop, firmware-linux, network-manager).
  • Files copied into the system: config/includes.chroot/ (mirror the target path, e.g. etc/skel/, wallpapers, etc/os-release overrides).
  • Scripts run inside the chroot: config/hooks/normal/0100-custom.hook.chroot (chmod +x).
  • Bootloader branding: config/bootloaders/ (copy from /usr/share/live/build/bootloaders).
  • Build: sudo lb build 2>&1 | tee build.log. Output: live-image-amd64.hybrid.iso. Clean: sudo lb clean.

5. Arch archiso recipe

sudo pacman -S archiso
cp -r /usr/share/archiso/configs/releng myiso
# edit myiso/packages.x86_64, myiso/airootfs/, myiso/profiledef.sh (iso_name, label)
sudo mkarchiso -v -w /tmp/work -o out myiso

6. Boot, persistence, size

  • Support both BIOS (isolinux/syslinux) and UEFI (GRUB); live-build and archiso do both by default. Secure Boot needs the distro's signed shim/GRUB; custom kernels break it unless signed.
  • Persistence (Debian): boot param persistence, plus a USB partition labelled persistence containing persistence.conf with / union.
  • Size: squashfs with xz (--chroot-squashfs-compression-type xz), drop docs/locales you don't need, avoid full desktop tasks for a CD.

7. Test before anyone writes a USB

qemu-system-x86_64 -enable-kvm -m 4G -cdrom out.iso                                  # BIOS
qemu-system-x86_64 -enable-kvm -m 4G -bios /usr/share/ovmf/OVMF.fd -cdrom out.iso   # UEFI

Check: boots in both modes, network, sound, keyboard layouts, fonts, persistence, shutdown. Then publish sha256sum out.iso > SHA256SUMS.

Writing to USB (dd if=out.iso of=/dev/sdX bs=4M status=progress oflag=sync) erases the target disk: always have the user confirm the device with lsblk first, and never run it yourself.

8. Distribution checklist

  • Keep the whole config in git; builds must be reproducible from it.
  • GPL: if you distribute the ISO, provide (or offer) the corresponding source; keep non-free firmware licences in mind.
  • Don't reuse another distro's name or logo as your own branding.
  • Document default users/passwords; never ship a known root password without telling users.

Five verified build tiers — run them, do not trust them

tools/liveiso/build_min.sh and tools/liveiso/verify.py in this repository build a hybrid BIOS+UEFI ISO and then prove it boots rather than asserting it.

Tier 1 — structure (build_min.sh), 5/5 verified 2026-11-28

Check Result
ISO built and non-trivial (11.6 MiB) PASS
El Torito catalogue carries a BIOS boot image PASS
El Torito catalogue carries a UEFI boot image PASS
GRUB 2.12 started under QEMU over serial PASS
Default entry executed and printed its marker PASS

Required packages (Debian/Ubuntu): xorriso squashfs-tools grub-pc-bin grub-efi-amd64-bin mtools dosfstools qemu-system-x86.

Tier 2 — a real Linux live system (build_live.sh), 7/7 verified 2026-11-28

Kernel plus a busybox initramfs, so the image reaches **

Полный SKILL.md на GitHub

Установить linux-live-iso-builder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

LICENSESOURCE.mdTRUST.auto.yaml

FAQ

Что делает скилл linux-live-iso-builder?

Build a custom Linux live CD/USB ISO (Debian live-build, Ubuntu, Arch archiso, Fedora, Alpine or Buildroot): packages, branding, persistence, BIOS+UEFI boot, testing in QEMU. Use for live CD, live ISO, custom distro, bootable Linux.

Как установить скилл linux-live-iso-builder?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл linux-live-iso-builder запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить linux-live-iso-builder с