Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add paths to windows metadataFiles #212

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

gabriel-samfira
Copy link
Contributor

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: containerd/containerd#8043

Signed-off-by: Gabriel Adrian Samfira [email protected]

@gabriel-samfira
Copy link
Contributor Author

gabriel-samfira commented Feb 4, 2023

fs/fstest/compare_windows.go Outdated Show resolved Hide resolved
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.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants