customize base rootfs arg

This commit is contained in:
Thales Maciel 2026-02-05 14:37:03 -03:00
parent 01517dd902
commit a8078f2393
3 changed files with 25 additions and 15 deletions

View file

@ -68,10 +68,12 @@ reboot
## Customize Rootfs (Docker + Kernel Modules)
Use `customize.sh` to build a writable rootfs with Docker and kernel modules
preloaded so Docker works out of the box.
preloaded so Docker works out of the box. Pass the base rootfs as a positional
argument; the output defaults to `docker-<base filename>` in the same directory
unless you pass `--out`.
```
./customize.sh rootfs-docker.ext4 --size 6G --docker
./customize.sh ./rootfs.ext4 --size 6G --docker
```
Options:
@ -80,6 +82,7 @@ Options:
- `--initrd`: initrd path (default: `./wtf/root/boot/initrd.img-6.8.0-94-generic`).
- `--modules`: kernel modules directory (default: `./wtf/root/lib/modules/6.8.0-94-generic`).
- `--docker`: install Docker packages into the image.
- `--out`: output rootfs path (default: `docker-<base filename>`).
After boot, enable NAT and validate Docker:
```