Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building the ISO

The ISO is built from the d77void/d77orphaned repository with mkorphaned.sh, a wrapper around mklive.sh from void-mklive.

Requirements

  • A Void Linux x86_64 (glibc) computer, and root.
  • A few GB free in the repository directory.
  • mtools, if the computer’s kernel cannot mount vfat images.

Build

From the repository root:

sudo ./mkorphaned.sh

The result is d77orphaned-live-x86_64-<date>.iso in the same directory, as with void-mklive. Options after -- go to mklive.sh, for example a different keyboard layout and language:

sudo ./mkorphaned.sh -- -k pt-latin1 -l pt_PT.UTF-8

Repositories

Besides the official Void repositories, the build uses:

  • the d77void repository on SourceForge, for pwm, wasp, Utumno, the greeter and Kantele;
  • Void’s nonfree repository, for nmap.

-n leaves both out, and -r <repository> adds one. Repositories given first take precedence. For example, to use packages you built yourself with xbps-src:

sudo ./mkorphaned.sh -n \
  -r /path/to/void-packages/hostdir/binpkgs/d77 \
  -r https://repo-default.voidlinux.org/current/nonfree

Packages already downloaded are cached in xbps-cachedir-x86_64/.

Documentation inside the image

When a checkout of d77void/orphaned-docs sits next to the d77orphaned repository (or D77_DOCS_DIR points to one) and mdbook is installed on the build computer, the build puts this documentation into the image: the website in /usr/share/doc/d77orphaned/html and the Markdown pages in /usr/share/doc/d77orphaned/md. Without them, the build warns and goes on.

The SOURCES file

Each build also writes d77orphaned-live-x86_64-<date>.SOURCES.txt next to the ISO, and puts the same file in the image at /usr/share/doc/d77orphaned/SOURCES.txt (mksources.sh, called from postsetup.sh). It is generated from the packages actually installed, so it always matches the ISO it comes with. Publish it together with the ISO.

The build does not touch your /boot

mklive.sh installs Memtest86+ into a helper directory that has no shell. When that happens, XBPS runs the package’s post-install script on the computer doing the build, and that script regenerates the computer’s own /boot/grub/grub.cfg (running os-prober on its disks as well). This comes from void-mklive.

The regenerated file is normally the same as an update-grub would make, but a build should not change the computer that runs it. mkorphaned.sh therefore runs the whole build in a private mount namespace, with an empty /boot. The script then has nothing to regenerate, and the build fails if the computer’s grub.cfg changes anyway.

Testing

tests/qemu-harness.py boots the ISO in QEMU (with KVM when available) and runs the test scenarios: boot menus, sessions, tools and disk integrity. See the repository’s README.md and docs/TEST_REPORT.md.