Skip to content

CSI luks open error #72

@sergelogvinov

Description

@sergelogvinov

Hello, containerd-2.0 does not have /dev/stdin device in container.

"--key-file", "/dev/stdin", // read the passphrase from stdin

This simple changes fix it

	args := []string{
		"-q",                      // don't ask for confirmation
		"luksFormat",              // format
		"--hash", defaultLuksHash, // hash algorithm
		"--cipher", defaultLuksCipher, // the cipher used
		"--key-size", defaultLuksKeyize, // the size of the encryption key
		devicePath,                 // device to encrypt
		"--key-file=-" // read the passphrase from stdin
	}

need to replace from "--key-file", "/dev/stdin" to --key-file=- everywhere

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions