Kernel panic after slackware-current update
Hello everyone, it's still me with a problem with my kernel!
This morning I did the last upgrade, including the upgrade from 5.4.40 to 5.4.41 kernel. The last 2 upgrades were carried out without problems, after upgrading normally I did: Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r) I created a bootable usb key with the latest Slackware64-current version, I found documentation: https://docs.slackware.com/howtos:sl...uefi_and_elilo but I am not sure that this is necessary, because when I mount my SSD to access my partition which allows me to boot, I see that my initrd.gz file is not up to date while vmlinuz * them the are (5.4.41). (To understand what I mean with regard to the initrd.gz file, it is that the last modification date is May 12th, while vmlinuz * have been modified today) In my opinion, the problem comes from initrd.gz, but I can't see how I can fix it. |
1 Attachment(s)
I was finally able to boot on vmlinuz, and this is what I get
Attachment 33225 Honestly, I don't know what to do, I have another pc with Slackware 14.2 since November 2019, I never had a problem, or I was always able to solve them |
Quote:
|
You will need to chroot into the system and re-run the mkinitrd generator and then lilo, or eliloconfig, or grub-mkconfig, depending on how you've set up booting.
Here's a recent post going over the basic chroot setup if you haven't done that before: https://www.linuxquestions.org/quest...ml#post6108585 Theres also a few pages at docs.slackware.com that go over chrooting into the system. Also I generally run the mkinitrd generator as: Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.4.41 | bash |
Thank you Alien Bob
The error occurred after the upgrade, normally when I type commands, I use the tab key for automatic completion, but it did not work so I entered the command by myself and I received this error. |
Quote:
The command should, according to the beginners guide be run as root. Not as your code quote indicates as a normal user. http://docs.slackware.com/slackware:beginners_guide Quote:
|
Thank you 0XBF
I managed to execute the commands, I mounted my partitions and I chroot /mnt, strangely eliloconfig does not work, Code:
mount: failed to read mtab: No such file or directory mkinitrd_command_generator.sh works, I tried to restart it shutdown -r -t sec 1, but I get an error, I also tried /etc/rc.d/rc.6 but I get the same error, but I'm not allowed to enter other commands afterwards Code:
WARNING: could not determine runlevel - doing soft reboot |
Quote:
https://docs.slackware.com/howtos:sl...ge_for_generic |
Sorry, I forgot to type exit before reboot, now I always have the same screen when I boot except that I have no error concerning the kernel
|
I modified elilo.conf, I deleted root = / dev / initramfs and I added a line root = / dev / nvme0n1p3 because my root partition is this and I had already configured my file like this before that I have this problem, but I have the same error message, it is only the partition which changes
Code:
mount: mounting /dev/nvme0n1p3 on /mnt failed: No such device |
I'm not saying this is best practice or anything, but when there's a kernel update all I do is copy the vmlinuz-huge-5.x.x from /boot to /boot/efi/EFI/Slackware/ named as just vmlinuz.
My elilo.conf Code:
chooser=simple Is this best practice? I really doubt it. Running liloconfig on an MBR system after kernel upgrade works. Running eliloconfig on an EFI system after kernel upgrade does not. It results in exactly the error you're showing right now. I've also never had success using mkinitrd with kernel-generic so I decided to just shelf it in favor of huge.. hasn't give me any issues yet. I've found so many conflicting answers on how to properly update the kernel in slackware on an EFI system that I've just settled on what I know works. |
Quote:
As an example, I run the following shell script named mkinit.sh after an upgrade (I use grub versus lilo/elilo)... Code:
#!/bin/bash Code:
#! /bin/sh Code:
#!/bin/bash Quote:
I honestly do thank you for trying to help a fellow Slackware user. Please don't give up trying to help others, despite my negative comments. |
Hi ReFracture
Is that I did, it allowed me to boot but I still have the problem as mentioned in my other post. On my other laptop, I am still using my generic kernel and have never had a problem with this. |
However you run that script (although it will only let you if you are root) there should be an output something like follows:
Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -r) Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -options | bash If you run ... Code:
$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -options ) And yes, just fix the system in chroot and then exit the chroot to get back to the console. Quote:
Code:
chooser=simple |
@0XBF
My file is identical, only the root path is different and nvme0n1p3 is my root partition. I configured my elilo.conf file in 2 ways, the first, only by changing the path for root, and the second by indicating the path for vmlinuz as well as initrd.gz. However, before the problem started, my generic kernel was well configured because I was booting on it. I'm continuing the research, I don't want to reinstall from scratch again, I would update my thread |
All times are GMT -5. The time now is 02:54 PM. |