diff --git a/main.go b/main.go index 321a9aa..bb5c34c 100644 --- a/main.go +++ b/main.go @@ -125,6 +125,11 @@ func luksify(label string) error { return fmt.Errorf("err: %w, out: %s", err, out) } + out2, err := sh(fmt.Sprintf("cryptsetup close %s", b.Name)) + if err != nil { + return fmt.Errorf("err: %w, out: %s", err, out2) + } + return nil }