Several improvements

Bump cli from v2 to v3
Drop several outdated commands
Drop unused libraries like config
Improve the log process by unifying into a single one witht he same name
Bump all deps
Add a version command so its inline with our other binaries
Add commit and go build info to version command

Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka
2025-04-16 15:32:50 +02:00
parent 05eae3a7d7
commit 3d9999b170
14 changed files with 117 additions and 815 deletions

View File

@@ -14,7 +14,6 @@ import (
"github.com/jaypipes/ghw"
"github.com/jaypipes/ghw/pkg/block"
"github.com/kairos-io/kairos-sdk/types"
configpkg "github.com/kairos-io/kcrypt/pkg/config"
)
func CreateLuks(dev, password string, cryptsetupArgs ...string) error {
@@ -90,7 +89,7 @@ func Luksify(label string, logger types.KairosLogger, argsCreate ...string) (str
return "", err
}
return configpkg.PartitionToString(b), nil
return fmt.Sprintf("%s:%s:%s", b.FilesystemLabel, b.Name, b.UUID), nil
}
// LuksifyMeasurements takes a label and a list if public-keys and pcrs to bind and uses the measurements