driver: add pre09 migration logic

This commit is contained in:
Nick Ethier
2019-01-14 12:25:59 -05:00
parent 2118d94b2d
commit 07cdedec2f
18 changed files with 288 additions and 176 deletions

View File

@@ -307,6 +307,11 @@ func (d *AllocDir) UnmountAll() error {
fmt.Errorf("failed to remove the secret dir %q: %v", dir.SecretsDir, err))
}
}
// Unmount dev/ and proc/ have been mounted.
if err := dir.unmountSpecialDirs(); err != nil {
mErr.Errors = append(mErr.Errors, err)
}
}
return mErr.ErrorOrNil()