Hi
I have an encrypted ZFS volume which I unlock at boot time using this
systemd service:
[Unit]
DefaultDependencies=no
After=zfs-import.target
Before=zfs-mount.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/zfs load-key -a
StandardInput=tty-force
[Install]
WantedBy=zfs-mount.service
I have a very weird issue that.. if I type too fast the password is
wrong. I know this sounds weird but it's true..
I can type the same password fast and it is wrong, then I type it very
slowly the third time and it works.
I feel like it must be some weird thing with the boot terminal input
rate or key detection but I have no clue where to start looking.
Unfortunately the prompt has no *** char masking so I am not even sure
if keys are being registered or what is happening below.
I also have encrypted boot drive which unlocks first but that terminal
looks different and has no issues.
I also tried a few other ways to load but I can't get either to work:
#ExecStart=/usr/bin/bash -c 'systemd-ask-password "ZFS password"
--no-tty | zfs load-key -a'
#ExecStart=plymouth ask-for-password --prompt="Password for zfs"
--number-of-tries=5 --command="/usr/sbin/zfs load-key -a"
Any clues welcome