feature: pre_lvm_crypt

This commit is contained in:
Mikaël Cluseau
2023-12-17 13:48:18 +01:00
parent 898c43b954
commit 12bfa6cfd6
9 changed files with 100 additions and 14 deletions

4
lvm.go
View File

@ -212,6 +212,8 @@ func zeroDevStart(dev string) {
}
}
var cryptDevs = map[string]bool{}
func setupCrypt(devSpecs []config.CryptDev, createdDevs map[string]string) {
var password []byte
passwordVerified := false
@ -245,8 +247,6 @@ func setupCrypt(devSpecs []config.CryptDev, createdDevs map[string]string) {
}
}
cryptDevs := map[string]bool{}
for _, devName := range devNames {
name, dev := devName.Name, devName.Dev