Skip to content

Commit

Permalink
Merge branch 'eero/cleanup-builds-5-point-5' into 'master'
Browse files Browse the repository at this point in the history
Userspace LVM tools

Create tooling to build LVM images in userspace, by building and writing the disk information directly. This removes the need for any privileges when building HostOS, and clears out a few points of non-determinism (`lvm` tools use the kernel, and write metadata about the builder that can't be disabled or easily faked.).

Based on https://github.com/libyal/libvslvm/blob/main/documentation/Logical%20Volume%20Manager%20(LVM)%20format.asciidoc and https://github.com/lvmteam/lvm2 

See merge request dfinity-lab/public/ic!11361
  • Loading branch information
Bownairo committed Mar 20, 2023
2 parents f28a3e0 + d441c93 commit 440356b
Show file tree
Hide file tree
Showing 3 changed files with 559 additions and 187 deletions.
2 changes: 1 addition & 1 deletion toolchains/sysimage/build_disk_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def main():
"partitions",
metavar="partition",
type=str,
nargs="+",
nargs="*",
help="Partitions to write. These must match the CSV partition table entries.",
)

Expand Down

0 comments on commit 440356b

Please sign in to comment.