You are not logged in.

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

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

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: 30

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,607

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,536

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: 30

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,338

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: 30

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,338

Offline

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

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

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,338

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: 30

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,338

Re: MKINITCPIO not including hooks

cbc can not be found as a module

Well, add that?

Offline

#38 2025-04-29 17:49:17

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

Re: MKINITCPIO not including hooks

I added cbc and now when I try and unlock the disk it just freezes in place with a blinking cursor and does nothing until its forced to power down and restart... No error message, nothing.

Offline

#39 2025-04-29 19:00:57

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

Re: MKINITCPIO not including hooks

Ran the cryptsetup --debug open /dev/sda5 crypt
This is where it hangs...

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

Offline

#40 2025-04-29 20:28:09

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

Offline

#41 2025-04-30 16:41:45

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

Re: MKINITCPIO not including hooks

This does not apply to me. I left it over night and it still has not unlocked, it is hung not still trying...
If you saw in the debug pic i posted, the last line is udev cookie semid 0 waiting for zero. I am a programmer and to me that means its a hung semaphore that's waiting till 0 is updated in its conditional variable...
I am also not using a key file, just a plain key slot on the luks2 disk...
I am also past grub, this is not a crypt boot disk this is a crypt main volume. Grub has nothing to do with it...

Offline

#42 2025-04-30 19:43:37

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

Re: MKINITCPIO not including hooks

No, didn't…

lsinitcpio /boot/init… | grep udev

https://gitlab.com/cryptsetup/cryptsetup/-/issues/869

Offline

#43 2025-05-05 21:04:15

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

Re: MKINITCPIO not including hooks

udev is definitely included...
I included lvm2 hook and it seemed to allow me to unlock the disk but it drops immediately into an emergency shell and I cant do very much, no internet connection, nothing...

Offline

#44 2025-05-05 21:24:14

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

Re: MKINITCPIO not including hooks

Offline

#45 Yesterday 13:52:54

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

Re: MKINITCPIO not including hooks

measured uki "fails" but see https://bbs.archlinux.org/viewtopic.php?id=305295

Lose plymouth; why does this end in the emergency target at all? (Explicit? See the 2nd link below)
For the output, skip "-x", it's spam and wasting lines.
Can you get this into the multi-user.target or, since the disks unlock, can you "journalctl -b > /some/persistent/memory/location/journal.txt" so you can upload it from there?

Offline

Board footer

Powered by FluxBB