Hi all,
I recently installed Tumbleweed on my Thinkpad X9-15 (A few times, to test some things out).
I made a BTRFS root partition, with an XFS home, and 32GB of swap.
I chose to encrypt with LUKS2 and selected TPM2+PIN as the unlock method.
However, the installer prompted me for a password, and upon login to the desktop, I realised that there was only a password keyslot occupied on the /, home and swap partitions.
I registered my own tpm2+pin slot and it seemed like all was good.
I noticed when I was booting an older snapshot, that sometimes it would just keep asking me for my PIN, and then drop me to an emergency shell after multiple attempts. I thought this might be because I added my TPM2+PIN key to the drive and just assumed that older snapshots would be invalid because the current state of the drive is different than it was when I only had a password slot. (I’m just getting started with Linux really, so my understanding isn’t too great).
Today, I updated my UEFI, and noticed that even running on the current snapshot, I would get prompted for my PIN constantly. (I pressed ESC and verified it was asking for the PIN and not the password).
On a whim, I entered my password multiple times, and it ended up letting me in, but then it started failing on a PCR15 check, so I added measure-pcr-validator.ignore=yes to my cmdline and booted again.
I then re-enrolled the TPM2+PIN and tried getting in again, but kept getting the same assortment of errors, to the point where I was locked out of the system.
I managed to use systemd-cryptenroll attach cr_root and then my device UUID to get my drive into /dev/mapper, and then tried to mount it to /mnt/root from dracut, and I was trying to chroot into it so I could clear the TPM keyslots. This didn’t work (/dev/ only contained null, so I did something wrong), I ended up using a recovery USB and managed to clear the TPM2+PIN slot and get back into the system (keeping the PCR skip in the commandline)
So now I’m back to using password only, I had to manually edit /etc/crypttab and remove mentions of the TPM2 and measuring the PCR, and it seems to be working fine.
My questions are:
- Should the YaST installer for tumbleweed have prompted me to set a PIN? I don’t see the point in choosing TPM2+PIN if it just registered a password only anyway.
- What did I do wrong here? If updating my UEFI is going to lock me out of the system, what can I do to mitigate this?
- Should I ONLY be using the TPM2+PIN keyslot, or should I keep password in there too? Is mixing both complicating things?
- Why is the message ambiguous about requesting my PIN, when it really was asking for my password?
Thanks for reading through all that, I’m interested in resolving this, I’m still surprised I managed to rescue my way out of this being a somewhat new user.