Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Do not unmount devices during system uninstall. (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0mant committed Jan 24, 2020
1 parent 1aca795 commit 9d1cc3c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tool/gravity/cli/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -1074,10 +1074,6 @@ func systemUninstall(env *localenv.LocalEnvironment, confirmed bool) error {
return trace.Wrap(err)
}

if err := removeMounts(env, svm, stateDir); err != nil {
log.WithError(err).Warnf("Failed to remove mounts: %v.", err)
}

env.PrintStep("Deleting all local data at %v", stateDir)
if err = os.RemoveAll(stateDir); err != nil {
// do not fail if the state directory cannot be removed, probably
Expand Down

0 comments on commit 9d1cc3c

Please sign in to comment.