For those using firecracker, what's your method for building a rootfs?
sudo $GOPATH/bin/firebuild rootfs \
--profile=standard \
--dockerfile=git+https://github.com/hashicorp/docker-consul.git:/0.X/Dockerfile \
--cni-network-name=machine-builds \
--ssh-user=alpine \
--vmlinux-id=vmlinux-v5.8 \
--tag=combust-labs/consul:1.9.4
That SSH bit is no longer required as I'm using MMDS instead.Thanks for these write-ups. They make for a riveting read, even when more than half of it usually is beyond my technical know-how.
OpenWrt's build system has a method of building rootfs ext4 and squashfs images without any root, it's somewhere in that large Makefile mess.
(sorry, reposting this as I first replied to the wrong parent)
And yes, I've studied the OpenWRT build to no avail. I would be delighted for someone to dissect whatever it is that goes on in there and write it up.