Mail archive
alpine-devel

[alpine-devel] How to automount a luks encrypted volume using keyfile on system start?

From: Dave Jones <s.dave.jones_at_gmail.com>
Date: Sun, 15 Apr 2018 22:59:38 +0800

Hi,

I followed the following steps to set up encrypted volumes with LUKS and it
works fine:
http://wiki.alpinelinux.org/wiki/LVM_on_LUKS

I'd like to use keyfile to automount a luks encrypted volume. I tried to
added the line "lvmcrypt /dev/vda2 /etc/mykeyfile luks" to /etc/crypttab,
then run "mkinitfs" to regenerate initramfs, but it doesn't work.
Still prompts for passphrase :( Anyone has idea to how to? Thanks.

Regards,
Dave



---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sun Apr 15 2018 - 22:59:38 GMT