LUKS On EL6 / Enable Block Device After Reboot

Home » CentOS » LUKS On EL6 / Enable Block Device After Reboot
CentOS 1 Comment

Is there an easy way (cli) to enable a luks encrypted partition after reboot (a partition that was not enabled while booting, because not in the crypttab).

I can execute the necessary command stack [1] but just wondering if there is an “enterprise/easy” way to do that …

[1] cryptsetup luksOpen $(blkid -t TYPE=”crypto_LUKS” -o device) \
luks-$(cryptsetup luksUUID $(blkid -t TYPE=”crypto_LUKS” -o device))

One thought on - LUKS On EL6 / Enable Block Device After Reboot

LEAVE A COMMENT