Slackware 15.0 64 - ELILO freezes after improper upgrade via slackpkg
Hello and HNY!
I dared to do Code:
slackpkg upgrade-all and then let config files be overwritten. I assume also kernel files were upgraded and now i cannot boot. I think i have ELILO. I was able to boot from installation media where i think it was possible via grub. So now "normal boot" is not possible. Please help me fix that. Some more information: Code:
root@slackware:/boot/efi/EFI/Slackware# ls -lrt /boot/ Code:
|
If you can boot the installed system using the installation media, then you should be able to run "eliloconfig" and follow the bouncing ball to fix everything.
|
2 Attachment(s)
Quote:
Code:
eliloconfig In the attached files you can see where bootloader freezes and which entries are available for selection via installation usb. The system gets loaded when i select /boot/vmlinuz-huge-5.15.80 (although not sure if this should be the proper choice). |
Could you post your elilo.conf file? That should help us figure out what is wrong.
It appears from your fist pic pasted, the huge kernel is loading, and there is an ititrd.gz file. Did you create a new one after the upgrade to the 5.15.80 kernel? If in fact you are trying to loade huge, you shoud not need an initrd.gz file. I rare situations, one can be needed. |
Quote:
Code:
root@slackware:/boot# ls -la Code:
root@slackware:/boot/efi/EFI/Slackware# cat elilo.conf |
Clearly, you are trying to load the huge kernel, and an initrd.gz of unknown contents.
Edit the elilo.conf file by hand. Comment out the initrd= line, place at least one # sign at teh beginning of the line. See if it will boot then. I can post a working elilo.conf file if you would like. Could you also post an ls -l of your /boot/efi/EFI/Slackware directory. |
Quote:
Code:
root@slackware:/boot/efi/EFI/Slackware# ls -l |
Please post the contents of your /boot/efi/EFI/Slackare/ directory. A ls -al command should do.
Here, for reference is nine. Things to check, do you see in yours the correct kernel you wna to boot to in in yours? Does the elilo.efi file look to be the same size as the one in boot? It should match elilo-x86_64.efi in /boot. The initrd.gz file, have you generated another one and copied to /boot/efi/EFI/Slackare/ after the kernel upgrade? Check the size for comparison. Quote:
Quote:
BTW, if you realy have the generic kernel copied, and you need it to boot, you will need an initrd.gz file, so you can un-comment the line for it in this case. |
I would try a quick grub bootlader swap just to discard an elilo bug
Copy EFI/bootx64.efi from usb installer to /boot/efi/EFI/Slackware/grub.efi create a simple /boot/efi/EFI/Slackware/grub.cfg config file: Code:
set default="0" |
The size of /boot/efi/EFI/Slackware/vmlinuz is the same as /boot/vmlinuz-generic-5.15.80, so it's the generic one which needs initrd. The symbolic links in /boot, for example vmlinuz-generic, are dated 'Dec 31 15:06', so the kernel was upgraded then. But initrd.gz is older 'Dec 31 10:00'. You need to build a new initrd.gz after upgrading kernel, and copy it to /boot/efi/EFI/Slackware.
|
What's in /boot is of no matter when the system is booting with EFI, since the root partition isn't even loaded at that point. elilo, by your configs, is grabbing /efi/EFI/Slackware/vmlinuz and trying to run that with /efi/EFI/Slackware/initrd.gz. By the dates (Nov, Dec) of those files, that might not be what you want. You can use 'file' to tell you the version of a kernel bootable image. Your initrd better match it. You might also want to check 'efibootmgr' to make sure it has an entry that actually points to elilo.efi like so:
Code:
Boot0001* Slackware HD(1,GPT,1d39afc6-46db-4550-b122-74c8381926f3,0x800,0x82000)/File(\EFI\SLACKWARE\ELILO.EFI) |
When this happens to me, I boot with a USB stick and pass "mount root=/dev/sda1" as a boot parameter to get the machine up...
...and then I 'eliloconfig' to fix elilo To fix this in the future, I have started running updates with my little script: Code:
#!/bin/bash |
Thanks to all who posted!
What i did was that i found that sample script /usr/share/mkinitrd/mkinitrd_command_generator.sh i ran it and whatever was suggested i ran that command. After that i was able to boot without USB disk. |
All times are GMT -5. The time now is 09:19 AM. |