Description of problem:
Partitions using luks are not enabled. During the boot the password is requested but the process is never completed. The partitions were ready and are used by other distributions.
Version-Release number of selected component (if applicable):
Mageia 9 Alpha 1
Steps to Reproduce:
1. Have an encrypted partition with luks.
2. Edit the /etc/crypttab file Here is the Crypttab file of the computer where the problem is occurring.
grandaj3 UUID=f38b3c67-8271-47de-b68f-66013b7ac89f none luks,check=ext4
home4b UUID=bb4504aa-f000-4066-9a94-66fd0c585957 none luks,check=ext4
comum4b UUID=6d51d1ae-197a-463a-8eba-749f453e4e0c none luks,check=ext4
OpenSuse Tumbleweed automatically creates a /etc /crypttab file with a slightly different format but it doesn't work either.
3. Reboot the computer. It asks for the password but never concludes the boot.
RPM Packages =>
Thank you Gilberto for the report, and DavidW for his admin corrections.
Pity our encryptation guru is presently off-line.
Assigning to the Mageia Tools people re the Installer.
I just tested creating adding an encrypted file system to an existing
m9 vb install using diskdrake.
# cat /etc/crypttab
It's working, but with one problem. The boot appeared to freeze. The prompt
to enter the passphrase didn't appear until I pressed a key.
Once it did appear, after entering the passphrase it worked properly and
the data in the partition is accessible.
[root@x9v ~]# grep sdb /proc/mounts
/dev/mapper/crypt_sdb1 /data ext4 rw,noatime 0 0
[root@x9v ~]# cryptsetup status crypt_sdb1
/dev/mapper/crypt_sdb1 is active and is in use.
keysize: 512 bits
key location: keyring
sector size: 512
offset: 32768 sectors
size: 33508904 sectors
Note this was before sddm started, the passphrase prompt was in text mode,
not using a gui dialog such as pinentry-qt
I'll test creating the encrypted file system during install, but expect it
will have the same problem.
As usual, I'd removed "splash quiet" from the boot options to see what was
Tested a new plasma install using defaults for almost everything and
cryptsetup is working as expected. It included properly using a gui
for entering the passphrase.
I didn't add the online repos for the test in comment 4, just the
Mageia-9-alpha1-x86_64.iso. The following crypt related packages were
# rpm -q -a|grep -e pine -e crypt|sort
[root@x9v ~]# systemctl status systemd-cryptsetup@crypt_sdb1.service
● systemd-cryptsetup@crypt_sdb1.service - Cryptography Setup for crypt_sdb1
Loaded: loaded (/etc/crypttab; generated)
Active: active (exited) since Wed 2022-11-30 15:42:35 EST; 8min ago
Process: 579 ExecStart=/usr/lib/systemd/systemd-cryptsetup attach crypt_sdb1 /dev/disk/by-uuid/5bfe3a21-ff91-4604-85cf-0ac690f77548 (code=exited, status=0/SUCCESS)
Main PID: 579 (code=exited, status=0/SUCCESS)
Nov 30 15:42:25 x9v.hodgins.homeip.net systemd: Starting systemd-cryptsetup@crypt_sdb1.service...
Nov 30 15:42:33 x9v.hodgins.homeip.net systemd-cryptsetup: Set cipher aes, mode xts-benbi, key size 512 bits for device /dev/disk/by-uuid/5bfe3a21-ff91-4604-85cf-0ac690f77548.
Nov 30 15:42:35 x9v.hodgins.homeip.net systemd: Finished systemd-cryptsetup@crypt_sdb1.service.
Luks does not mount encrypted partitions. =>
Luks does not mount encrypted partitions. openssl fails due to missing /etc/crypto-policies/backends/opensslcnf.configSeverity: