You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rootfs.exe tool to merge tar image layers (#2424)
* Add `rootfs.exe` tool to merge tar image layers
Add tool to merge layer tarball files, which is used for creating
WCOW uVM images with additional features added, without first needing to
create a dedicated container image.
This basically amounts to the append and flatten container image
operations from the
[crane](github.com/google/go-containerregistry/cmd/crane) tool, with
some specific changes:
- use `"path"` and not `"path/filepath"` for path manipulation, which
avoids paths with `\` separators;
- append a trailing `/` to directory paths (since different `tar`
implementations may append them); and
- overwrite the owner UID and GID to zero, to avoid any user issues.
The tool avoids needing to unpack tar files within the same directory
(as is done for LCOW) to combine the deltas with tar images.
Based on 2024 Hackathon to replace current LCOW uVM rootfs creation,
before the switch to Azure Linux.
Signed-off-by: Hamza El-Saawy <[email protected]>
* PR: remove leftover code, fix linter, extra comment
Signed-off-by: Hamza El-Saawy <[email protected]>
---------
Signed-off-by: Hamza El-Saawy <[email protected]>
0 commit comments