-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to generate using latest version and Gentoo #147
Comments
Are you on the latest 9999? Are you using AES? That check is not functioning properly because it can't detect the encryption type. (possibly because you have a detached header and it can't read any info from it) Are there any warnings before that? You may be using a version before this check was added: https://github.com/desultory/ugrd/blob/main/src/ugrd/crypto/cryptsetup.py#L240-L241 |
Thank you, I am using v1.28.2 For the algorithm I am using serpent I believe, but it worked before with this. When booting even from the old initramfs, I get an error saying that it is unable to find gentoo-root, but then proceeds to decryption. It does not proceed when booting the distribution kernel. |
Ok this helps some, it currently doesn't check for serpent. Have you tried the 9999 ebuild (from the main branch)? If you can share more of the log with --debug enabled, that would help. There should be a log line that says something like "LUKS header information" with dict contents of the parsed header. It should have an "encryption" attribute. The main thing I need to address is confirming the right kmod is pulled. It may just be the "serpent" kmod. |
The check can be disabled by disabling header validation, and in this case, the check may be failing too easily. It's meant to be a build time check to ensure it's making an image that can handle your setup. |
Ok, I think I fixed it by making it init empty strings if it can't get those values. I'm confused why your header doesn't have keyslots..area.encryption, I did a test with serpent and mine has that. In my test, it doesn't seem that /proc/crypto says the serpent kmod is being used, and for some reason cryptsetup doesn't report it has serpent ciphers in cryptsetup --help. I'm not sure how i can safely make it check for this, so it just ignores it for now. |
Hi. I tried with 9999 and I am still getting the error, but it at least generates the initramfs. The error it throws lists block devices, and there are only nvme devices, and I think it is because I am running the installation off of an external ssd chasis. I would like to get it to decrypt with the distribution kernel, because my touchpad isn't working and I can't figure out the kernel config for it. The new initramfs still boots with the custom kernel, but I have to click through the errors to get it to prompt for decryption. |
The exact same error? can you please send it? If you mean there is an error at run time, that is likely because of missing kmods. If you're building ugrd for another system, you have to manually set the cryptsetup UUIDs and disable hostonly mode/validation. |
I just got a new laptop, so I installed a distribution kernel for my gentoo, and when trying to generate a new initramfs, I get this error. I am also unable to decrypt the drive using the dist kernel and the initramfs I have now, but I can boot using my old kernel:
The text was updated successfully, but these errors were encountered: