Goverp wrote:Jimini wrote:
I edit all the content of the initramfs by editing the files in /usr/src/initramfs/. So, for instance, the init script which gets actually loaded by the kernel at boot time is a different one than under /usr/src/initramfs/
Let's be pedantic about this (sorry, but best to avoid misunderstandings): you've edited the init script,
Yes :)
deleted the files in /usr/src/linux/usr/initramfs_data.cpio*,
Yes :)
run "make" and "make install",
Yes :)
but when you run the kernel, it still has the init script from before the edit?
Exactly.
And your grub/refind/whatever isn't loading any external initramfs file, the only initramfs is the one in the kernel?
Yep, /boot/ only contains the System*-. config*- and vmlinuz-files - and of course the grub-related stuff.
The last time I did similar stuff was a couple of weeks ago (which is why I wrote that genlist script), and it all worked as it should, picking up changes to the init file without further prompting. I'm using kernel 5.9.9, so I reckon it's something in your setup.
If I read your listing correctly, you're running from the Live CD, so I presume the initramfs problem is stopping you booting directly with your new kernel. So are you running in a chroot? Perhaps there's some mixup between the chroot file tree and the real file tree, meaning you're build in one tree, but booting from a different one.
The initramfs itself loads fine, but I have a problem with my LUKS encrypted drive (the embedded old cryptsetup version does not recognize the LUKS v2 encrypted drive).
So I get a rescue shell, but I cannot open the encrypted drive. And since my initramfs does not update, it still contains cryptsetup v1.6.5 (if I remember correctly), while /usr/src/initramfs/sbin/cryptsetup is v2.
I guess the things to check are (1) you really are loading the kernel you think - check the /proc/version timestamp, and do a grep for it against the kernel file you think you are using, and assuming that's OK
That *should* already be the case, since I deleted all kernel files from /boot/ and re-copied them there afterwards - just to avoid a wrong kernel image being loaded. But I'll doublecheck that.
I'll get in touch with that.
Thanks for your support so far! I'll keep you updated.
Kind regards,
Jimini
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)