udisks icon indicating copy to clipboard operation
udisks copied to clipboard

Provide a udisksctl command to unlock and mount in one step

Open ghost opened this issue 7 years ago • 8 comments

Please can udisksctl gain a command to unlock and mount a LUKS-encrypted drive in one step?

At the moment, there does not seem to be a way to do this.

A Bash script can be written to act as a wrapper, parsing the output of udisksctl unlock and passing the appropriate device name to the input of udisksctl mount, but this appears to go against the intentions of the authors/maintainers of udisksctl, who warn in the man page:

[This] program is not intended to be used by scripts or other programs - options/commands may change in incompatible ways in the future even in maintenance releases.

ghost avatar Dec 15 '17 05:12 ghost