Closed alevy closed 5 years ago
Yes, I believe it was modified to output to Firecracker's magic port so that kernel boot time can be measured.
... and another for changing ext4 file size.
Ideally we would resize the resulting file system to fit the contents. This is possible with resize2fs but is subtle enough for me to have skipped it for now. A command line argument would work as well (and maybe makes sense to have as a minimum in case we want to reserve extra space on the file system in some cases).
Yes, I believe it was modified to output to Firecracker's magic port so that kernel boot time can be measured.
I think that’s right. So this setup won’t actually work exactly as we want for Firecracker, we’ll have to continue to modify this and add in these features (e.g., replace a custom /sbin/init, etc).
Adds a (hopefully) simple script to generate a rootfs for a particular runtime. At a high level, it uses the base alpine docker image (the default one from Docker Hub), and runs three scripts inside the container:
prelude.sh
sets up openrc scripts, including creating a generic startup init script that mounts the appfs at/srv
and executes/srv/workload
.A runtime specific script found in
runtimes
which generally just installs the runtime using alpine'sapk add
.postscript.sh
copies files from the docker image into the root file system (mounted temporarily at /my-rootfs)Appfs images to follow.