mirror of
https://github.com/kairos-io/kcrypt.git
synced 2025-09-01 05:07:41 +00:00
Also unlock with TPM
so we can use the same functions everywhere just with a flag Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
10
main.go
10
main.go
@@ -55,9 +55,15 @@ func main() {
|
||||
UsageText: "unlock-all",
|
||||
Usage: "Try to unlock all LUKS partitions",
|
||||
Description: "Typically run during initrd to unlock all the LUKS partitions found",
|
||||
ArgsUsage: "kcrypt unlock-all",
|
||||
ArgsUsage: "kcrypt [--tpm] unlock-all",
|
||||
Flags: []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
Name: "tpm",
|
||||
Usage: "Use TPM to unlock the partition",
|
||||
},
|
||||
},
|
||||
Action: func(c *cli.Context) error {
|
||||
return lib.UnlockAll()
|
||||
return lib.UnlockAll(c.Bool("tpm"))
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user