You are not logged in.

#1 2017-12-05 03:45:23

CafePilgrim
Member
Registered: 2017-12-05
Posts: 2

[SOLVED] dm-crypt seperate / and /home partitions | Dependency failed

Is there any way to pass a second kernel parameter to grub?
At the moment I have my / encrypted, which is on a separate partition (and physical drive) from my /home, which is also encrypted. In /etc/default/grub, I've placed:

GRUB_CMDLINE_LINUX="cryptdevice=/dev/sdb3:cryptroot"

But upon booting, that will return the following:
https://i.imgur.com/3LVL9Zq.jpg

I assume as it's trying to look for /home, but can't find it, and I can't seem to find a way to pass a secondary GRUB_CMDLINE_LINUX= parameter to prompt me to decrypt and mount it at /mnt/home without generating what looks like an erroneous grub.cfg.

Thanks.

Last edited by CafePilgrim (2017-12-05 07:48:18)

Offline

#2 2017-12-05 04:45:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] dm-crypt seperate / and /home partitions | Dependency failed


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-12-05 07:48:06

CafePilgrim
Member
Registered: 2017-12-05
Posts: 2

Re: [SOLVED] dm-crypt seperate / and /home partitions | Dependency failed

Solved with crypttab.

Created a keyfile for /home

mkdir /keystore
dd if=/dev/urandom of=/keystore/key bs=1024 count=4
chmod 0400 /keystore/key

Edited /etc/crypttab to reference my encrypted /home partition

crypthome    /dev/sda2    /keystore/key    luks

fstab already had the /dev/mapper/crytphome entry; rebooted, prompted to enter in the / password, then /home auto-decrypted and mounted once entered.

Thanks.

Offline

Board footer

Powered by FluxBB