Encrypted swap/tmp in lvm?
Stephen Quinney
squinney at inf.ed.ac.uk
Thu Aug 22 16:34:56 CEST 2024
I'm wondering if it's possible to create an lvm volume to use as
encrypted tmp or swap? I'm getting this error:
Cannot satisfy pre-depends for cryptsetup --key-file=/dev/urandom create crypt_dev_mapper_vg0-swap /dev/mapper/vg0-swap: exist_/dev/mapper/vg0-swap -- system left untouched.
Here's the config I am trying to use, am I missing something here?
########################################################################
disk_config /dev/vda disklabel:gpt-bios align-at:512B fstabkey:uuid
primary - 4096- - -
disk_config lvm
vg vg0 /dev/vda1
vg0-root / 10000 ext4 defaults,acl
vg0-swap - 4007MB - -
vg0-var /var/cache/afs 2000 ext4 defaults,nosuid,noexec,nodev
vg0-tmp /tmp 1000 ext4 defaults,nosuid,nodev
disk_config cryptsetup
swap swap /dev/mapper/vg0-swap swap defaults
########################################################################
More information about the linux-fai
mailing list