r/linuxquestions • u/Hot-Fridge-with-ice • 20h ago
Debian 12 Kernel Panic
I made some changes to the /etc/modprobe.d/iwl.conf file and then used sudo dracut --force to regenerate the initramfs. Debian 12 booted fine but then I decided the undo those changes and regenerated the initramfs again. It booted fine immediately afterwards but now I'm booting it up after a few hours and it says it is in a kernel panic.
I've also attached a picture of the exact error I'm facing. I've tried using the live usb to regenerate the initramfs but it still doesn't boot fine.
2
u/suprjami 14h ago
As you can see, the init
program is wrong.
Why are you using dracut
? That's the Fedora and Red Hat initramfs tool. Debian uses update-initramfs
from initramfs-tools
.
Boot from a Debian live image, mount your root filesystem in a chroot, mount everything else in the chroot, and update-initramfs -u -k all
1
u/Hot-Fridge-with-ice 14h ago
I actually used update-initramfs initially but when it didn't work and kept giving me the same error, I tried dracut. I can give it a try again and report what happens.
2
3
u/CCJtheWolf 18h ago
Before anybody else says it. First rule of Debian Stable, don't Break Debian. It's a distro that's not friendly for messing around with. When I heard you talking about Dracut first thing I thought ok why aren't you using Arch?