Re: /dev/mapper/home not mounted to /home at boot anymore (have to do it manually)
Reply #4 –
Thanks @gripped for looking into it.
I'm not using LVM, the responsible of the creation of /dev/mapper/home is dmcrypt.
I've checked in /etc/init.d that dmcrypt has the line
before checkfs fsck localmount
so that the problem should not occur.
Here is an excerpt of rc.log:
* Setting up dm-crypt mappings ...
egrep: warning: egrep is obsolescent; using grep -E
* home using: --allow-discards open /dev/nvme0n1p4 home ...
Enter passphrase for /dev/nvme0n1p4:
[ ok ]
[ ok ]
* Updating /etc/mtab ...
* Creating mtab symbolic link
[ ok ]
* Activating swap devices ...
[ ok ]
* Configuring kernel parameters ...
[ ok ]
* Creating user login records ...
[ ok ]
* Wiping /tmp directory ...
[ ok ]
* Setting hostname to <hostname> from /etc/hostname ...
[ ok ]
* Setting terminal encoding [UTF-8] ...
[ ok ]
* Setting keyboard mode [UTF-8] ...
[ ok ]
* Loading key mappings [fr] ...
[ ok ]
* Bringing up network interface lo ...
RTNETLINK answers: File exists
[ ok ]
* Bringing up interface lo
* Caching network module dependencies
* 127.0.0.1/8 ...
[ ok ]
* Adding routes
* 127.0.0.0/8 via 127.0.0.1 ...
[ ok ]
[ ok ]
* Setting up sysusers.d entries ...
[ ok ]
* Setting up tmpfiles.d entries ...
[ ok ]
* Starting powerbuttonled ...
* start-stop-daemon: /home/<user>/src/EmbeddedController/build/bds/util/ectool does not exist
* Failed to start powerbuttonled
[ !! ]
* ERROR: powerbuttonled failed to start
* Saving key mapping ...
[ ok ]
* Saving terminal encoding ...
[ ok ]
* Starting seatd ...
[ ok ]
* Seeding random number generator ...
* Seeding 256 bits and crediting
【・・・】
You can see that dm-crypt starts, I type the password, all seems well, but at the point where the contents of /home is actually used (for a custom service I wrote powerbuttonled) it fails and that reveals that /home is actually not mounted.
But the file /dev/mapper/home exists, showing that dm-crypt did succeed.