-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle multiple rd.luks.name parameters #124
Comments
See |
Thank you. I booted without that and with booster.debug=1. It is now stalling |
I do not see the image content unfortunately. But if you use ZFS for the root partition then it won't work due to #33 |
I use ext4. |
Booster expects partition with |
And also booster was able to unlock the partition using |
If I boot with the mkinitcpio initramfs image,
|
dm-2 which is /dev/mapper/root is the root partition. |
I do not have the full log but per the image above it unlocks at least 2 devices. What is the output of |
|
I taking my words back. Only 1 luks partition is unlocked here. It comes from the fact that booster currently processes only 1 |
I pushed a proposed fix to |
Hi. I just tried the WIP branch. All partitions are unlocked. However, I see two more issues:
|
This needs to be enabled explicitly. See
|
In case if a partition has multiple key slots then booster tries them all. So it asks the user for a password and at the same time tries to connect TPM. Booster uses any slot that gets unlocked first. It looks like you have 2 slots - one with |
Also note that there is no need to unlock all the partition at initrd stage. Usually only |
In my case, root and swap need to be unlocked early on so I can get hibernate/resume working. |
got it. if encrypted swap is used for hibernation then yes, it needs to be unlocked in |
Ideally, there is always one password other than the tpm2 token. Even when creating the tpm2 token, I am asked for an existing password. It also means I can access the disk from chroot. |
Currently there is no such option. In the future I want to add |
I'm not an expert on luks but doesn't this indicate that only devices with no tokens will be checked with passwords? var checkSlotsWithPassword []int
for _, s := range d.Slots() {
if !slotsWithTokens[s] {
// only slots that do not have tokens will be checked with keyboard password
checkSlotsWithPassword = append(checkSlotsWithPassword, s)
}
} |
It is correct - only slots that have no tokens or have |
But doesn't mine have a tpm2 token and should therefore skip password prompts? Or have I not understood something? |
Most likely you have multiple slots. Run |
Yes. Each partition has slot 0 and slot 1. |
Ok, regarding this, I have:
So a token will correspond to a keyslot. |
I enabled discussion page for this project. Please ask your questions there https://github.com/anatol/booster/discussions |
my systemd-boot file.
I get unknown value in rd.luks.options=tpm2-device=auto.
The text was updated successfully, but these errors were encountered: