Add discard flags during format (#424)

This commit is contained in:
Itxaka
2024-07-31 17:58:42 +02:00
committed by GitHub
parent 7c93fed233
commit 33ce07902b
2 changed files with 8 additions and 1 deletions

View File

@@ -130,7 +130,6 @@ func LuksUnlock(device, mapper, password string) error {
return err
}
defer dev.Close()
err = dev.Unlock(0, []byte(password), mapper)
if err != nil {
return err