mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-02 03:56:07 -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
|
@ -2,6 +2,7 @@ package core
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// GetDiskUUID gets the disk's UUID.
|
||||
|
@ -14,7 +15,7 @@ func (c *Core) GetDiskUUID() (string, error) {
|
|||
if err != nil {
|
||||
return "", fmt.Errorf("cannot retrieve uuid of disk: %w", err)
|
||||
}
|
||||
return uuid, nil
|
||||
return strings.ToLower(uuid), nil
|
||||
}
|
||||
|
||||
// UpdateDiskPassphrase switches the initial random passphrase of the encrypted disk to a permanent passphrase.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue