rmdir tmp dirs for rootfs mounts

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-12-04 13:28:39 -05:00
parent b0ca685874
commit a8b543f87d
3 changed files with 6 additions and 6 deletions

View File

@@ -192,7 +192,7 @@ func remapRootFS(mounts []mount.Mount, uid, gid uint32) error {
if err != nil {
return err
}
defer os.RemoveAll(root)
defer os.Remove(root)
for _, m := range mounts {
if err := m.Mount(root); err != nil {
return err