Closed Joe-Degs closed 1 year ago
initial iteration adds the --init
option to the spitfire mkroot
command for building the init root drive.
so running sudo spitfire mkroot --init --size 100M --fs ext2 --name tmpinit
using go tooling should install the binary from the repo github.com/thi-startup/init with the default config run.json
and bundle it into a loop device that when mounted should have the following tree.
joe@spectre:~/dev/thi-startup/spitfire$ mkdir tmp && sudo mount tmpinit tmp
joe@spectre:~/dev/thi-startup/spitfire$ sudo tree tmp
tmp
├── init
├── lost+found
└── thi
└── run.json
2 directories, 2 files
description
the original idea is we provide a simple way to bundle the root drive containing the init for starting the microvms with a simple command like
spitfire mkroot --init --size 5G --name init.drive
.the init and its config can be found here