Edge case with udiskie on boot when installed on encrypted sd card
Describe your issue
When booting from encrypted sd card the new udiskie functionality !2905 (closed) is getting a little confused.
What's the expected behaviour?
udiskie
should not fire decrypt prompt.
What's the current behaviour?
Upon screen unlock after boot udiskie is there prompting to:
Enter password for /dev/mmcblk0p2
/dev/mmcblk0p2
is the LUKS encrypted root partition already mounted at /
gnome-disk-utility
shows it as currently locked.
How to reproduce your issue?
pmbootstrap
to sd card with FDE, insert card and boot.
What device are you using?
pine64-pinephone Braveheart with PPBH-MBCE3+32G board replacement
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
What's the build date of the image? (in yyyy-mm-dd format)
Additional information
This can be worked around but creating a local config for udiskie
by creating the file ~/.conig/udiskie/config.yml
with the contents:
device_config:
- device_file: /dev/mmcblk0p2
ignore: true
This may be due to how pmOS/alpine/OpenRC does its encryption/mounting and how udiskie
detects it as
-
lsblk
does not showmmcblk0p2
as having a mount point, -
mount
showing/dev/mapper/root on / type ext4 (rw, relatime)
but/dev/mapper/root
is non-existant