You are not logged in.

#26 2025-04-15 18:13:52

onthegrid007
Member
Registered: 2023-12-03
Posts: 25

Re: MKINITCPIO not including hooks

lsmod when inside of the non-working initramfs

https://drive.google.com/file/d/1jOrrOd … sp=sharing

Offline

#27 2025-04-18 21:14:52

onthegrid007
Member
Registered: 2023-12-03
Posts: 25

Re: MKINITCPIO not including hooks

Any ideas?

Offline

#28 2025-04-19 10:50:19

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,564

Re: MKINITCPIO not including hooks

Maybe it helps to get back to basics , for clarity :

Remove your custom scripts from the mkinitcpio hooks
regenerate and boot to multi-user.target .

login to console as root.
Execute the commands necessary to unlock your encrypted drive manually.
Please post the exact  commands and their outputs.

Also post a full journal for this boot .

Last edited by Lone_Wolf (2025-04-19 10:50:46)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#29 2025-04-19 14:23:44

frostschutz
Member
Registered: 2013-11-15
Posts: 1,534

Re: MKINITCPIO not including hooks

I don't see dm crypt module in your lsmod screenshot

binaries, libraries, configs and other dependent files, udev rules, kernel modules, and finally having things loaded running and correct commands... that's about it

perhaps add the original encrypt lvm2 hooks anyway, just to take care of essential dependencies, if that helps you can still figure out what was missing specifically

Offline

#30 2025-04-21 16:41:43

onthegrid007
Member
Registered: 2023-12-03
Posts: 25

Re: MKINITCPIO not including hooks

frostschutz wrote:

I don't see dm crypt module in your lsmod screenshot

binaries, libraries, configs and other dependent files, udev rules, kernel modules, and finally having things loaded running and correct commands... that's about it

perhaps add the original encrypt lvm2 hooks anyway, just to take care of essential dependencies, if that helps you can still figure out what was missing specifically

https://drive.google.com/file/d/1uBtBiQ … sp=sharing

The dm_crypt module cant be loaded, can anyone explain this or offer a fix?
This is honestly probably why the cryptsetup is not working...

Offline

#31 2025-04-21 18:08:45

seth
Member
Registered: 2012-09-03
Posts: 63,021

Re: MKINITCPIO not including hooks

modinfo dm_crypt | grep -A1 depends

Offline

#32 2025-04-21 18:46:34

onthegrid007
Member
Registered: 2023-12-03
Posts: 25

Re: MKINITCPIO not including hooks

seth wrote:
modinfo dm_crypt | grep -A1 depends

https://drive.google.com/file/d/1h2IuO1 … sp=sharing

Just a stupid loop around...

Offline

#33 2025-04-21 19:18:42

seth
Member
Registered: 2012-09-03
Posts: 63,021

Offline

#34 2025-04-21 19:22:57

onthegrid007
Member
Registered: 2023-12-03
Posts: 25

Re: MKINITCPIO not including hooks

I looked at the link but I am unsure about what you are asking...
I can try and implement the patch you linked if its just a script file somewhere in the OS.
The algorithm that the cryptsetup is trying to use to unlock the disk, I will refer you back to the luksDump of the disk:
https://0x0.st/8_Fy.txt

Please let me know if I should try and apply the patch but I assume that is the information you are asking for...

Last edited by onthegrid007 (2025-04-21 19:23:11)

Offline

#35 2025-04-21 19:37:26

seth
Member
Registered: 2012-09-03
Posts: 63,021

Re: MKINITCPIO not including hooks

This link is to say "would be really nice if it was saying what it fails to use"
You'd have to patch the kernel.

Check whether hmac (should be builtin) cbc and sha256 are available - the module doesn't load, you're not even trying to decipher anything here, so the used cipher isn't relevant.

Offline

#36 2025-04-21 22:57:23

onthegrid007
Member
Registered: 2023-12-03
Posts: 25

Re: MKINITCPIO not including hooks

Hmac is built in, yes. cbc can not be found as a module. sha256 is loaded and required no dependencies.

Offline

#37 2025-04-22 06:38:21

seth
Member
Registered: 2012-09-03
Posts: 63,021

Re: MKINITCPIO not including hooks

cbc can not be found as a module

Well, add that?

Offline

Board footer

Powered by FluxBB