Proof of concept. Turn docker container into bootable disk image. Contains a lot of hardcoded stuff and has some dependecis.
- Pulls rootfs out of docker contaienr
- Creates a qcow2 disk image with one parititon spanning it.
- Copies rootfs onto the partition.
- Copies current kernel and installs grub.
- Copies
overlay
onto the partition.
It conatins minimalistic init binary, some config files and scriptable init hook (overlay/sbin/init.sh
).