Skip to content

Commit 68f7b34

Browse files
Add paths to windows metadataFiles
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]>
1 parent 5817935 commit 68f7b34

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

fs/fstest/compare_windows.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@
1616

1717
package fstest
1818

19-
// TODO: Any more metadata files generated by Windows layers?
20-
// TODO: Also skip Recycle Bin contents in Windows layers which is used to store deleted files in some cases
2119
var metadataFiles = map[string]bool{
22-
"\\System Volume Information": true,
23-
"\\WcSandboxState": true,
20+
"\\System Volume Information": true,
21+
"\\WcSandboxState": true,
22+
"\\Windows": true,
23+
"\\Windows\\System32": true,
24+
"\\Windows\\System32\\config": true,
25+
"\\Windows\\System32\\config\\DEFAULT": true,
26+
"\\Windows\\System32\\config\\SAM": true,
27+
"\\Windows\\System32\\config\\SECURITY": true,
28+
"\\Windows\\System32\\config\\SOFTWARE": true,
29+
"\\Windows\\System32\\config\\SYSTEM": true,
2430
}

0 commit comments

Comments
 (0)