mirror of
https://github.com/kairos-io/kcrypt.git
synced 2025-08-17 15:06:30 +00:00
Close device after luksify
This commit is contained in:
parent
5fbdc4d614
commit
410f8b2ed7
5
main.go
5
main.go
@ -125,6 +125,11 @@ func luksify(label string) error {
|
|||||||
return fmt.Errorf("err: %w, out: %s", err, out)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user