This project provides a system for generating a custom Debian 13 (Trixie) installation ISO that automatically configures a workstation for ChromeOS Hardware Tools, including custom drivers, Docker, and a graphical environment.
Build the ISO: Run the provided build script. It will download the official Debian 13.3.0 netinst ISO and inject the preseed.cfg.
./build_iso.sh
Identify your USB Drive: Plug in your USB stick and find its device name (e.g., /dev/sda, /dev/sdb).
lsblk
Flash the ISO: Use dd to write the ISO to the entire device (replace /dev/sda with your actual device).
sudo dd if=custom-debian-preseed.iso of=/dev/sda bs=4M status=progress oflag=sync
The preseed.cfg automates the Debian installation process and handles several architectural challenges specific to modern hardware and the Debian Testing/Stable transition.
en_US and keyboard to us.diagnoseme-server. The installer is set to priority=high, which forces it to prompt the user for the network interface (allowing manual Wi-Fi selection and WPA key entry).atomic recipe (everything in one partition) on the primary disk.ssh-server.lightdm, openbox, and xserver-xorg.install-recommends is disabled to bypass a known bug in Debian Testing's plymouth package that causes installer crashes.nvme_core.default_ps_max_latency_us=0 for NVMe stability.post-install-setup.sh script and a systemd “one-shot” service to run it on the first boot.After the first reboot, the diagnoseme-setup.service triggers the following logic:
build-essential, dkms, and linux-headers.diagnoseme package.docker.io, docker-compose, and docker-cli from official Debian repos.diagnoseme package.diagnoseme triggers a DKMS build of the r8152 Realtek driver. This is done on first-boot to ensure the driver is compiled against the active running kernel, avoiding header mismatches.cdc_ether module.initramfs to include the new driver.r8152 driver correctly loaded.diagnoseme user.docker and sudo groups for immediate work.docker is not found, verify the setup script finished; it requires a working internet connection during the first boot.journalctl -u lightdm. We explicitly install xserver-xorg to compensate for the disabled recommends.