mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-01 11:36:10 -04:00
Force lowercase luks disk UUID in disk-mapper, disk-rekeying and recovery
Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
parent
e13ec3f914
commit
17d73813a9
2 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@ package mapper
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
cryptsetup "github.com/martinjungblut/go-cryptsetup"
|
||||
)
|
||||
|
@ -36,7 +37,7 @@ func (m *Mapper) IsLUKSDevice() bool {
|
|||
|
||||
// GetUUID gets the device's UUID.
|
||||
func (m *Mapper) DiskUUID() string {
|
||||
return m.device.GetUUID()
|
||||
return strings.ToLower(m.device.GetUUID())
|
||||
}
|
||||
|
||||
// FormatDisk formats the disk and adds passphrase in keyslot 0.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue