Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

nalabelle/debian-build-iso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

debian-build-iso

Builds a debian live boot image in docker. The general idea here is to set up an immutable boot USB for a docker host on my local network.

I have an internal SSD in the docker host machine, which keeps state. I prefer this over a mount since my NAS isn't configured for HA and likely never will be. I don't install the OS on the state drive due to the relative lack of support for ZFS on Linux. I prefer ZFS for the easy syncing, snapshotting, and cross-platform compatibility with my FreeBSD boxes. Has provisioning support for running a script out of the state drive on boot.

Contains:

Pre-boot setup

Image expects a zfs dataset at /state/docker. Set this up before trying to run docker.

root@debian:~# zfs list
NAME           USED  AVAIL  REFER  MOUNTPOINT
state          612K  26.9G    96K  /state
state/apps      96K  26.9G    96K  /state/apps
state/config   712K  26.9G   632K  /state/config
state/docker    96K  26.9G    96K  /state/docker

If /state/config/provision.sh exists and is executable, it will be run at boot.

Write to USB

Research/Sources

About

docker build a custom debian live image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published