You are not logged in.
So my system boots fine, but since I added an encrypted swap partition to my system I've received an error message on boot. Firstly, I followed the wiki here: https://wiki.archlinux.org/index.php/Dm … sk_support which worked fine and I now have an openswap hook which makes the swap device available. My hooks are as follows:
HOOKS="base udev autodetect modconf block btrfs encrypt openswap lvm2 resume filesystems keyboard fsck"lsblk will show you my partition scheme:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 894.3G 0 disk
└─sda1 8:1 0 447.1G 0 part
├─ssd-arch--home 254:0 0 200G 0 lvm
│ └─_dev_dm_0 254:4 0 200G 0 crypt /home/shw
└─ssd-arch--swap 254:2 0 8G 0 lvm
└─encswap 254:3 0 8G 0 crypt [SWAP]
sdb 8:16 0 29.8G 0 disk
└─sdb1 8:17 0 29.8G 0 part /When it boots, it hits the encrypt hook and I get the following:
'Failed to open encryption mapping: The device UUID=(uuid of sdb1) is not a LUKS volume and the crypto=parameter was not specified'
Which is correct, it's just a BTRFS formatted partition. My GRUB config looks reasonable, so can anyone suggest why this might be happening?
Last edited by analbeard (2015-12-14 15:34:01)
Offline
A topic of this sounds similar to the following: https://bbs.archlinux.org/viewtopic.php?id=120243&p=1
It might be wise to read through it and also try reading this:
http://www.cyberciti.biz/hardware/howto … p-command/
I don't know if it works since I don't use LUKS but it may help. Other's with extensive knowledge of LUKS might come forward and help out if possible.
Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago. --- Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way
Offline
A topic of this sounds similar to the following: https://bbs.archlinux.org/viewtopic.php?id=120243&p=1
It might be wise to read through it and also try reading this:
http://www.cyberciti.biz/hardware/howto … p-command/
I don't know if it works since I don't use LUKS but it may help. Other's with extensive knowledge of LUKS might come forward and help out if possible.
Thanks for that, I had a good read through and then found this:
==> Help for hook 'encrypt':
This hook allows for an encrypted root device. Users should specify the device
to be unlocked using 'cryptdevice=device:dmname' on the kernel command line,
where 'device' is the path to the raw device, and 'dmname' is the name given to
the device after unlocking, and will be available as /dev/mapper/dmname.I'm not sure, but to me that seems to imply that the encrypt hook is only needed for an encrypted / - that would explain why it complains about sdb1 (my / ) not being a LUKs device. I'll try removing that hook and rebooting.
EDIT: so I tried my own suggestion of removing the encrypt hook, however this turned out to be a bad idea as lsinitcpio showed that cryptsetup wasn't present in the initramfs anymore. I then did a ton more reading and read this which is aimed at encrypted root LUKs on LVM. It states that the following should unlock an encrypted root device:
cryptdevice=/dev/lvm/lvroot:cryptoroot root=/dev/mapper/cryptorootSo I adapted this for my GRUB config:
GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=/dev/ssd/arch-swap:encswap resume=/dev/mapper/encswap"and then removed the openswap hook entirely. It works perfectly - the encrypt hook opens the LUKs device and then the resume hook is called on the mapped device with no error message.
I would update the wiki with this, however I'm not sure quite whether my method is preferred to a custom openswap hook.
Last edited by analbeard (2015-12-14 15:35:44)
Offline