pinephone pro: EMMC FDE "invalid passphrase" when another encrypted sd card is inserted
Describe your issue
When my root partition get mounted then dmcrypt got access to the key file to decrypt the sd card. Fstab then mount the mapped partition.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 115.2G 0 disk
├─mmcblk0p1 179:1 0 243M 0 part /boot
└─mmcblk0p2 179:2 0 115G 0 part
mmcblk0boot0 179:256 0 4M 1 disk
mmcblk0boot1 179:512 0 4M 1 disk
mmcblk1 179:768 0 119.1G 0 disk
└─crypt-sd 254:1 0 119.1G 0 crypt /mnt/sd
# /etc/fstab
# This file is *not* used to mount / or /boot.
# More information: https://postmarketos.org/fstab
/dev/mapper/crypt-sd /mnt/sd ext4 defaults,nofail 0 2
# /etc/conf.d/dmcrypt
…
target=crypt-sd
source='/dev/mmcblk1'
key='/etc/sd-keyfile'
$ doas blkid
doas (stacy@cyan-bottle) password:
/dev/mapper/crypt-sd: UUID="0694c4fe-7896-4279-8833-3d412626ec01" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mmcblk0p1: LABEL_FATBOOT="pmOS_boot" LABEL="pmOS_boot" UUID="E312-9FAA" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="primary" PARTUUID="e8dbbcf5-d041-4fa3-ad95-207e227e38e3"
/dev/mmcblk0p2: UUID="5b8136bf-0e94-4e53-89db-b845269a7780" TYPE="crypto_LUKS" PARTLABEL="primary" PARTUUID="77ec45db-e626-42c7-845f-8a89861a5ca9"
/dev/dm-0: LABEL="pmOS_root" UUID="89639c7a-60c2-423f-b0fd-1ef973fa44ff" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mmcblk1: UUID="d86cab51-349f-497d-a7e4-88a44fce87da" TYPE="crypto_LUKS"
What's the expected behaviour?
The passphrase interface should decrypt the root partition.
What's the current behaviour?
The passphrase interface try to decrypt the sd card instead (which got no passphrase)
How to reproduce your issue?
I think that setting up a blanc but luksed sd card and putting it in a fde emmc ppp setup should reproduce the issue.
What device are you using?
The pinephone pro
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v21.12
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway)
Other
-
No environment -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm -
Sxmo (Xorg/Dwm)
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
Edited by Administrator