Is there a way to set default options for cryptsetup? For example, lets say I want to make sure that I only open cryptsetup devices with the -r option. I would like to add it to a config file, so that I don't have to type it every time (and potentially forget it)

Reading man cryptsetup did not reveal any information.


AFAIK there is no configuration file for cryptsetup. You can of course define an alias and put that somewhere where it gets read in at login:

alias cryptsetup='cryptsetup --readonly'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.