Commit 9dca2db
committed
Handle windows-layer mounts somewhat like bind-mounts
windows-layer mounts (the only mount type supported by Windows) do not
currently use the `target` parameter to `mount.All`.
So instead, we treat them like bind-mounts and access the activated
layer in-place. Unlike the bind-mounts, we still need to Mount and
Unmount the layer.
Since we don't own the directory, we must not delete it after we unmount
it.
Signed-off-by: Paul "TBBle" Hampson <[email protected]>1 parent c378a7d commit 9dca2db
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
0 commit comments