about summary refs log tree commit diff
path: root/users/fcuny/notes/static
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-04-22 14:03:04 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-11 13:57:41 -0700
commit8686cd5698e42dd1a328f4fed6f77dc103c34275 (patch)
tree10e688f6080ce45ac115c31d3ff9d5f3372078b0 /users/fcuny/notes/static
parentadd a lease to the Go context (diff)
downloadworld-8686cd5698e42dd1a328f4fed6f77dc103c34275.tar.gz
extract layers to a mounted loop device
We create a loop device by pre-allocating space to a file on disk. This
file is then converted to an ext4 partition, which we mount to a
temporary path on the host.

Once this is done, we extract all the layers from the given container on
that mounted path. We also add a few extra files to the image
(`/etc/hosts` and `/etc/resolv.conf`).

When we're done extracting and writing, we run resize2fs in order to
resize the image to a more reasonable size.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions