containerd / continuity

A transport-agnostic, filesystem metadata manifest system
https://containerd.io
Apache License 2.0
137 stars 66 forks source link

Add paths to windows metadataFiles #212

Closed gabriel-samfira closed 1 year ago

gabriel-samfira commented 1 year ago

When creating a new empty base layer on Windows, hcsshim creates a set of empty registry hives in C:\Windows\System32\config. These files are needed in order for the new layer to be considered valid.

Add these locations to the metadataFiles, which excludes them when comparing the diffs of two layers.

This will be used in the snapshot tests on Windows in: https://github.com/containerd/containerd/pull/8043

Signed-off-by: Gabriel Adrian Samfira gsamfira@cloudbasesolutions.com

gabriel-samfira commented 1 year ago

These files get created here: https://github.com/microsoft/hcsshim/pull/1637/files#diff-94af4df272f2d4cf11cff84cc70fe9ac3a715b0e2c13440bb5e131f56660806cR74-R79