-
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
Initramfs with root partition using lvm and luks encryption fails to boot as its looking for a nonexistent kernel module #47
Comments
There is no such module as What is config file you use? |
universal: false
strip: true
compression: zstd |
It is really weird then. Please post the full output of |
Also post your |
attached is the output of |
I see it now. It looks like you specified luks' UUID as a root. And it is wrong. You should specify UUID of a filesystem that sits on top of LUKS partition. That top filetype should be have type like TODO: booster should provide a more helpful and actionable error message for such situation. |
What's the variable I should use to pass through the fstype? |
Per
But booster will detect filesystem type automatically. In your case the problem that you specified wrong |
So |
I do not know. It depends on your configuration. Post your |
In your bootloader config:
|
The kernel panic is expected and the result of the timeout. The real culprit is "Error allocating crypto tfm" that I am not sure where it comes from. Try to add |
The problem might be due to some extra cryptographic modules are missing in initramfs. As a workaround for it you can try to add |
And also show me the output of |
The ciphers look fine (these are default versions) and it should work. Anyway try to use |
It is still the same "error allocating crypt tfm" problem. Try also adding Also post your |
out put of |
Thanks for sharing it. All modules used by your crypto subsystem are part of the |
shall I try reinstalling? |
Try with the default config file (i.e. empty /etc/booster.yaml) and install booster-git from AUR. |
Booster 0.7 added numerous fixes for LUKS and LVM. Could you please try 0.7 and see if you still have the issue. |
I'm no longer on archlinux and actually on fedora Kinonite so I can no longer test/reproduce this issue. |
If a user specifies non-standard encryption like xts-camellia then booster fails to use it, and fails with error: [ 8.853839] device-mapper: table: 254:0: crypt: Error allocating crypto tfm (-ENOENT) [ 8.854683] device-mapper: ioctl: error adding target to table [ 8.871073] booster: dm ioctl (cmd=0xc138fd09): no such file or directory To fix it we need mimic kernel's codepath for this case. If modules for encryption mode/block cipher are not used then it asks userspace to load it with `modprobe crypto-$MODE`, when crypto-$MODE is an alias that points to other modules. To fix the issue we load the required `crypto-*` alias before setting up a device mapper for dmcrypto. As a result of this change 'modules' and 'modules_force_load' handles aliases as well. So user can add `modules: cryto-camellia` to their config. Add an integration test for loadable crypto module. Fixes #188 Fixes #47
If a user specifies non-standard encryption like xts-camellia then booster fails to use it, and fails with error: [ 8.853839] device-mapper: table: 254:0: crypt: Error allocating crypto tfm (-ENOENT) [ 8.854683] device-mapper: ioctl: error adding target to table [ 8.871073] booster: dm ioctl (cmd=0xc138fd09): no such file or directory To fix it we need mimic kernel's codepath for this case. If modules for encryption mode/block cipher are not used then it asks userspace to load it with `modprobe crypto-$MODE`, when crypto-$MODE is an alias that points to other modules. To fix the issue we load the required `crypto-*` alias before setting up a device mapper for dmcrypto. As a result of this change 'modules' and 'modules_force_load' handles aliases as well. So user can add `modules: cryto-camellia` to their config. Add an integration test for loadable crypto module. Fixes #188 Fixes #47
If a user specifies non-standard encryption like xts-camellia then booster fails to use it. The error message is [ 8.853839] device-mapper: table: 254:0: crypt: Error allocating crypto tfm (-ENOENT) [ 8.854683] device-mapper: ioctl: error adding target to table [ 8.871073] booster: dm ioctl (cmd=0xc138fd09): no such file or directory To fix it we need to mimic kernel's codepath for this case. What kernel does in case of loadable crypto modules are not loaded - it asks userspace to load the module with `modprobe crypto-$MODE`. `crypto-$MODE` is an alias that points to other modules. To fix the original issue we load the required `crypto-*` alias before setting up a device mapper for dm-crypt. As a result of this change 'modules' and 'modules_force_load' now handle aliases as well. So user can add `modules: cryto-camellia` to their config. Add an integration test for loadable crypto module. Fixes #188 Fixes #47
If a user specifies non-standard encryption like xts-camellia then booster fails to use it. The error message is [ 8.853839] device-mapper: table: 254:0: crypt: Error allocating crypto tfm (-ENOENT) [ 8.854683] device-mapper: ioctl: error adding target to table [ 8.871073] booster: dm ioctl (cmd=0xc138fd09): no such file or directory To fix it we need to mimic kernel's codepath for this case. What kernel does in case of loadable crypto modules are not loaded - it asks userspace to load the module with `modprobe crypto-$MODE`. `crypto-$MODE` is an alias that points to other modules. To fix the original issue we load the required `crypto-*` alias before setting up a device mapper for dm-crypt. As a result of this change 'modules' and 'modules_force_load' now handle aliases as well. So user can add `modules: cryto-camellia` to their config. Add an integration test for loadable crypto module. Fixes #188 Fixes #47
I'm trying to install arch linux using luks with lvm and booster for the initramfs. On boot I get the following error
/usr/lib/modules/5.11.4-arch1-1/luks.ko
I've had similar errors with both the lts and zen kernels as well.Any idea why I get these errors and how to fix them?
The text was updated successfully, but these errors were encountered: