Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue May 06, 2014 9:58 am 
Offline

Joined: Tue May 06, 2014 9:06 am
Posts: 1
Hi all,

I currently have a Centos 6.5 setup that is LUKS encrypted and I want to create a second Linode that is Ubuntu 14.04 based and encrypted the same way. I've been following this very well done guide: http://spin.atomicobject.com/2013/03/18/linux-encryption-cloud-luks-linode/ on the Atomic Spin blog. I can get a working Linode using Ubuntu 12.04 LTS but when I follow the same guide but replace it with 14.04 Trusty Tahr I'm unable to enter my encryption password from the LISH console.

This is all I see:

Code:
  Booting 'Ubuntu 14.04 LTS, kernel 3.13.0-24-generic'

root  (hd0)
 Filesystem type is ext2fs, using whole disk
kernel  /vmlinuz-3.13.0-24-generic root=/dev/mapper/crypt-xvdb cryptdevice=/dev
/xvdb:crypt-xvdb console=hvc0 ro quiet splash
initrd  /initrd.img-3.13.0-24-generic

close blk: backend=/local/domain/0/backend/vbd/494/51712 node=device/vbd/51712
close blk: backend=/local/domain/0/backend/vbd/494/51728 node=device/vbd/51728
close blk: backend=/local/domain/0/backend/vbd/494/51744 node=device/vbd/51744

Unlocking the disk /dev/disk/by-uuid/0bde6bc0-f329-48a6-8609-176c85ee0da3 (crypt-xvdb)
Enter passphrase:


I can type type type and nothing happens on the console. No *'s, and enter does nothing.

Does anyone have any insights into why this might be happening?

Thanks.


Top
   
PostPosted: Tue Aug 12, 2014 4:34 am 
Offline
Newbie

Joined: Fri Apr 18, 2014 1:16 am
Posts: 2
ilspleno wrote:
I can get a working Linode using Ubuntu 12.04 LTS but when I follow the same guide but replace it with 14.04 Trusty Tahr I'm unable to enter my encryption password from the LISH console.

Argh. I had a detailed reply typed out, but phpBB ate it. Here's the short version: It's a bug in 14.04 that didn't exist in 13.10 or earlier. The script that asks for the password now uses the Plymouth package to actually read the password from the console. Unfortunately, Plymouth doesn't know how to read input from a Xen PV console, so it prints the password prompt and sits there forever, ignoring everything you type in LISH.

Here's a workaround I came up with. You'll need to be booted into the Finnix rescue environment and chroot'd into your Ubuntu installation.

  1. Create file named /lib/cryptsetup/scripts/local.askpass and put the following two lines in it:

    Code:
    #!/bin/sh
    exec /lib/cryptsetup/askpass "Enter passphrase for ${CRYPTTAB_SOURCE}: "

  2. Make that file executable:

    Code:
    chmod 755 /lib/cryptsetup/scripts/local.askpass

  3. Edit your /etc/crypttab file. Add ,keyscript=local.askpass to the end of the line for your root device. For example, I changed...

    Code:
    # <target name> <source device> <key file>      <options>
    crypt-root      /dev/xvdc       none            luks


    ...to...

    Code:
    # <target name> <source device> <key file>      <options>
    crypt-root      /dev/xvdc       none            luks,keyscript=local.askpass

  4. Rebuild the initramfs:

    Code:
    update-initramfs -k all -u

  5. Cross your fingers, and try rebooting your Linode into the Ubuntu installation.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group