From 3a803d0087d51ea3caa80378bbae615fa45537c5 Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Sun, 4 Jun 2017 15:35:34 -0700 Subject: [PATCH] update_image.c: Ignore Windows 10 Recycle Bin directories. On Windows 10 (possibly earlier versions?), the \$RECYCLE.BIN or \$Recycle.Bin directories are created in the root of a volume. Both case variants here so capture of an NTFS volume from Linux should work, but wouldn't make a difference when capturing on Windows. --- doc/man1/wimcapture.1 | 2 ++ src/update_image.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/man1/wimcapture.1 b/doc/man1/wimcapture.1 index ffcc798c..da90c6a3 100644 --- a/doc/man1/wimcapture.1 +++ b/doc/man1/wimcapture.1 @@ -317,6 +317,8 @@ used: \\swapfile.sys \\System Volume Information \\RECYCLER +\\$RECYCLE.BIN +\\$Recycle.Bin \\Windows\\CSC .RE .RE diff --git a/src/update_image.c b/src/update_image.c index b6fb67c0..334db386 100644 --- a/src/update_image.c +++ b/src/update_image.c @@ -716,6 +716,8 @@ static const char wincfg[] = "/swapfile.sys\n" "/System Volume Information\n" "/RECYCLER\n" +"/$RECYCLE.BIN\n" +"/$Recycle.Bin\n" "/Windows/CSC\n"; static const tchar *wimboot_cfgfile = -- 2.46.1