You are not logged in.

#1 2018-05-19 11:09:51

napterk
Member
Registered: 2014-07-20
Posts: 13

[Solved] LUKS unwanted Passwort Prompt at boot time

Hi,

someone an idea where to check else? I want to open an encrypted partition at boot time with a key, even though it's rightly configured in crypttab, I always get a password prompt?

The keyfile works. I don't use systemd or plain-mode and it works with other encrypted partitions.

Thx in advance,

napterk

Last edited by napterk (2018-05-20 07:56:54)

Offline

#2 2018-05-19 11:12:36

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: [Solved] LUKS unwanted Passwort Prompt at boot time

Did you also encrypt /boot ?

Offline

#3 2018-05-19 18:27:43

napterk
Member
Registered: 2014-07-20
Posts: 13

Re: [Solved] LUKS unwanted Passwort Prompt at boot time

ugjka wrote:

Did you also encrypt /boot ?

This partition is not associated with any system essential root partitions. But no /boot is not encrypted.

Offline

#4 2018-05-19 18:36:01

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] LUKS unwanted Passwort Prompt at boot time

If you do not use systemd what do you use?  How have you determined the crypttab entry is correct?  How is this filesystem meant to be mounted? (for instance fstab + crypttab)

Offline

#5 2018-05-19 22:51:50

napterk
Member
Registered: 2014-07-20
Posts: 13

Re: [Solved] LUKS unwanted Passwort Prompt at boot time

loqs wrote:

If you do not use systemd what do you use?

what I meant, is I don't use sd-encrypt rather than encrypt. I've read that this been an issue somewhere in the wiki. That's why I mentioned it.

loqs wrote:

How have you determined the crypttab entry is correct?

The other encrypted disks have the same setting and will mount at boot time without asking for the password.
My thought was that the password prompt has something to do with the setting the partition is encrypted.
But manually opening the partition with the key works without problem. 

loqs wrote:

How is this filesystem meant to be mounted? (for instance fstab + crypttab)

yes, via fstab. I've put the setting on noauto, so I don't get stuck there.

Offline

#6 2018-05-19 23:28:54

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [Solved] LUKS unwanted Passwort Prompt at boot time

Just to be sure when you wrote the keyfile works manually using cryptsetup using the keyfile does work?  (I apologise the asking the obvious but before going on further investigations I want to be certain the obvious has been covered)

Offline

#7 2018-05-20 07:56:33

napterk
Member
Registered: 2014-07-20
Posts: 13

Re: [Solved] LUKS unwanted Passwort Prompt at boot time

Sorry, I have to apologise - the path of the keyfile in /etc/crypttab was not correct. After examining the systemd service status, I could determine the mistake.  Thank you for all the help and advice. Next time I will post the crypttab directly.

Offline

Board footer

Powered by FluxBB