Re: LUKS on EL6 / enable block device after reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2015-02-10 at 22:08 +0100, Leon Fauster wrote:

> 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))


I use a BASH script containing

	cryptsetup luksOpen /dev/$1 $2
	mkdir /xx/$2
	mount /dev/mapper/$2 /xx/$2


-- 
Regards,

Paul.
England, EU.      Je suis Charlie.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux