How to skip the luksFormat prompt?

Posted on

How to skip the luksFormat prompt? – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, luks, , , .

If I setup a new luks volume with “cryptsetup –verbose –cipher=aes-cbc-essiv:sha256 –key-size=256 luksFormat /dev/foo /my/keyfile” it requires me to enter “YES” to actually do anything. Is there a way to skip this prompt, so I can just run it from a script?

Solution :

--batch-mode should do exactly that.

Leave a Reply

Your email address will not be published. Required fields are marked *