I've installed Linux Mint 17.2, with a hard drive partitioned as follows:
sdc1 - 100MB ext2 for boot
sdc2 - rest of disk as LUKS -> Physical Volume -> LVM Volume
The logical volumes are:
/
/home
swap
The installer seemed to work correctly except it couldn't install the bootloader, and I was forced to choose the "install bootloader manually later" option.
I have the LiveCD running, have the LUKS volume opened and have mounted the root logical volume at /mnt.
Question: How do I install the bootloader?
Most instructions say something like:
# grub-install --root-directory=/mnt/ /dev/sdc
But this produces:
grub-probe: error: failed to get canonical path of `/cow'.
Installing for i386-pc platform.
grub-install.real: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'..
I have edited both /etc/default/grub
and /mnt/etc/default/grub
and added GRUB_ENABLE_CRYPTODISK=1
to both, but the error still occurs.
What is the proper way to set this up so that grub gets installed on the unencrypted sdc1, prompts for the password, then boots the system once unlocked?
UPDATE
Grub loads at boot now, but it's not asking for the password or decrypting properly. By adding the following options to /etc/default/grub
I can make it prompt for a password, but it won't decrypt when the right password is entered:
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="cryptopts=target=lvmbase,source=/dev/disk/by-uuid/f7ddbdb6-51c3-4c59-9d1e-7751b0438431,lvm=vg0_root"
GRUB_CMDLINE_LINUX=""