Skip to content

Commit

Permalink
imagefile: embed namespace and filesystem inside a file
Browse files Browse the repository at this point in the history
The resulting file can be used as backing store for a QEMU nvdimm
device. This is based on the approach that is used for the Kata
Container rootfs
(https://github.com/kata-containers/osbuilder/blob/dbbf16082da3de37d89af0783e023269210b2c91/image-builder/image_builder.sh)
and reuses some of the same code, but also differs from that in some
regards:
- The start of the partition is aligned a multiple of the 2MiB
  huge page size (kata-containers/runtime#2262 (comment)).
- The size of the QEMU object is the same as the nominal size of the
  file. In Kata Containers the size is a fixed 128MiB
  (kata-containers/osbuilder#391 (comment)).
  • Loading branch information
pohly committed Mar 31, 2020
1 parent 5c658dc commit 187179e
Show file tree
Hide file tree
Showing 3 changed files with 918 additions and 0 deletions.
Loading

0 comments on commit 187179e

Please sign in to comment.