Skip to content

Process substitution in luks module prevents using an empty passwordFile for provisioning. #1141

@liarokapisv

Description

@liarokapisv

''<(set +x; echo -n "$(cat ${config.passwordFile})"; set -x)''

^ The above process substitution makes cryptsetup fail when the file is empty. Just referencing the file directly works. You can easily test by touch-ing an empty file and testing with cryptsetup directly with both approaches.

Is there a reason that process substitution is used in this instance?

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