You are not logged in.

#1 2019-07-04 15:03:42

userak
Member
Registered: 2017-02-04
Posts: 42

[solved] Error : Cryptography Setup for crypttab

I'm getting following error while booting :

Jul 04 19:24:42 Skynet systemd[1]: Starting Cryptography Setup for crypttab:...
Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: Password file path 'for' is not absolute. Ignoring.
Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: Encountered unknown /etc/crypttab option 'encrypted', ignoring.
Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: Device mappings doesn't exist or access denied.

Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: crypt_init() failed: Block device required

I tried investigating the source of error and this is what I have found :

In the path "/run/systemd/generator/"  I have some of the following files:
systemd-cryptsetup@boot.service
systemd-cryptsetup@crypttab:.service
systemd-cryptsetup@home.service
systemd-cryptsetup@swap.service

The content of systemd-cryptsetup@crypttab:.service file is as follows :

# Automatically generated by systemd-cryptsetup-generator

[Unit]
Description=Cryptography Setup for %I
Documentation=man:crypttab(5) man:systemd-cryptsetup-generator(8) man:systemd-cryptsetup@.service(8)
SourcePath=/etc/crypttab
DefaultDependencies=no
Conflicts=umount.target
IgnoreOnIsolate=true
After=cryptsetup-pre.target
Before=cryptsetup.target
RequiresMountsFor=for
RequiresMountsFor=mappings
Requires=systemd-tmpfiles-setup-dev.service
After=systemd-tmpfiles-setup-dev.service

[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutSec=0
KeyringMode=shared
OOMScoreAdjust=500
ExecStart=/usr/lib/systemd/systemd-cryptsetup attach 'crypttab:' 'mappings' 'for' 'encrypted'
ExecStop=/usr/lib/systemd/systemd-cryptsetup detach 'crypttab:'

The options "RequiresMountsFor=for" and "RequiresMountsFor=mappings" in the above unit file are the source of errors, the man pages say it should be pointing to some path.

How do I solve this error ?
What is this unit file is being used for, as there are already cryptsetup unit files for boot, home and swap partitions.

Can somebody look into their system and tell me what is the "RequiresMountsFor" option in the file "systemd-cryptsetup@crypttab:.service" pointing to?

Last edited by userak (2019-07-04 15:29:17)


A newbie archlinux user ...

Offline

#2 2019-07-04 15:10:55

frostschutz
Member
Registered: 2013-11-15
Posts: 1,658

Re: [solved] Error : Cryptography Setup for crypttab

what's the /etc/crypttab look like? it almost seems like a comment # char was inadvertently removed or something

Offline

#3 2019-07-04 15:11:40

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

Re: [solved] Error : Cryptography Setup for crypttab

Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: Password file path 'for' is not absolute. Ignoring.
Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: Encountered unknown /etc/crypttab option 'encrypted', ignoring.
Jul 04 19:24:42 Skynet systemd-cryptsetup[483]: Device mappings doesn't exist or access denied.

Some entry in /etc/crypttab can not be parsed.  Causing the strange unit to be produced for the device mapper crypttab from the block device encryted.

Offline

#4 2019-07-04 15:28:57

userak
Member
Registered: 2017-02-04
Posts: 42

Re: [solved] Error : Cryptography Setup for crypttab

You guys are right, it was because of a line that got uncommented somehow generating this error causing file.


A newbie archlinux user ...

Offline

Board footer

Powered by FluxBB