What files control LUKS password prompt at boot?

Asked by komputes

In the boot process you are requested to put in passwords for encrypted devices that have been requested to be booted during setup in debian-installer. This does not rely solely on /etc/fstab and /etc/cryptab, since editing these files does not change the password prompt - you get prompted for a password even if you commend those drives out).

I would like to know what other file affect the boot password prompt for LUKS Devices?

My Setup:
sda1 /boot (unenc)
sda2 / (9.10 LUKS)
sda3 / (10.04 LUKS)
sda4 swap (swap LUKS) - swap to be shared among both 9.10 and 10.04

The issue arose when I had to recreate the swap during the second run of debian-installer (installing 10.04), since I could not use the existing swap parition (created when I was installing 9.10) - This issue is properly explained in Bug #155987

Question information

English Edit question
cryptsetup Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :

Is the prompt for the password of the device holding the root filesystem? Did you remember to run 'sudo update-initramfs -u' after editing /etc/fstab and /etc/crypttab?

Revision history for this message
komputes (komputes) said :

Hi Colin,

I was unaware that after making changes to fstab/cryptab I had to run 'sudo update-initramfs -u'.

Since I cannot boot into the system itself to run this command, I will need to chroot into the root partition to run the command. Unfortunately this fails as well.

1) Boot from a LiveCD or another partition/installation
2) Mount/decrypt the partition
3) chroot into the root partition
4) Run 'update-initramfs -u'

I get the following output (many errors) when attempting to run this command in the chroot:

Can you help with this problem?

Provide an answer of your own, or ask komputes for more information if necessary.

To post a message you must log in.