[SOLVED] Slackware 15.0 64 - ELILO freezes after improper upgrade via slackpkg
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware 15.0 64 - ELILO freezes after improper upgrade via slackpkg
Hello and HNY!
I dared to do
Code:
slackpkg upgrade-all
-> it went without any issues
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/
total 40829
drwxr-xr-x 3 root root 1024 Jan 1 1970 efi/
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
-rwxr-xr-x 1 root root 216219 Jun 12 2018 elilo-ia32.efi*
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo-x86_64.efi*
-rw-r--r-- 1 root root 423 Feb 13 2021 tuxlogo.dat
-rw-r--r-- 1 root root 33192 Feb 13 2021 tuxlogo.bmp
-rw-r--r-- 1 root root 424 Feb 13 2021 onlyblue.dat
-rw-r--r-- 1 root root 6878 Feb 13 2021 onlyblue.bmp
-rw-r--r-- 1 root root 432 Feb 13 2021 inside.dat
-rw-r--r-- 1 root root 22578 Feb 13 2021 inside.bmp
drwxr-xr-x 3 root root 4096 Jan 4 2022 grub/
-rw-r--r-- 1 root root 239586 Nov 27 19:27 config-huge-5.15.80.x64
-rw-r--r-- 1 root root 239617 Nov 27 19:27 config-generic-5.15.80.x64
-rw-r--r-- 1 root root 6867212 Nov 27 21:54 System.map-huge-5.15.80
-rw-r--r-- 1 root root 11585536 Nov 27 21:54 vmlinuz-huge-5.15.80
-rw-r--r-- 1 root root 5100705 Nov 27 21:57 System.map-generic-5.15.80
-rw-r--r-- 1 root root 7768960 Nov 27 21:58 vmlinuz-generic-5.15.80
lrwxrwxrwx 1 root root 38 Dec 31 09:52 README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
drwxr-xr-x 14 root root 4096 Dec 31 10:00 initrd-tree/
-rw-r--r-- 1 root root 9425920 Dec 31 10:00 initrd.gz
lrwxrwxrwx 1 root root 23 Dec 31 15:06 vmlinuz-generic -> vmlinuz-generic-5.15.80
lrwxrwxrwx 1 root root 23 Dec 31 15:06 System.map -> System.map-huge-5.15.80
lrwxrwxrwx 1 root root 23 Dec 31 15:06 config -> config-huge-5.15.80.x64
lrwxrwxrwx 1 root root 20 Dec 31 15:06 vmlinuz -> vmlinuz-huge-5.15.80
lrwxrwxrwx 1 root root 20 Dec 31 15:06 vmlinuz-huge -> vmlinuz-huge-5.15.80
elilo.conf looks like that - partition for / is properly configured
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.
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.
Hello @rkelsen, i tried running
Code:
eliloconfig
, all went without errors, an entry was replaced but i still cannot boot.
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).
I did not create a new elilo.conf after doing upgrade-all via slackpkg. I just told the script to overwrite the new config files after it was done. What it did, i do not know. I also tried to run eliloconfig which ran without any issues but my system still cannot boot.
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.
Code:
root@slackware:/boot/efi/EFI/Slackware# ls -l
total 17026
-rwxr-xr-x 1 root root 166 Jan 2 09:35 elilo.conf*
-rwxr-xr-x 1 root root 238531 Jun 12 2018 elilo.efi*
-rwxr-xr-x 1 root root 9425920 Dec 31 10:00 initrd.gz*
-rwxr-xr-x 1 root root 7768960 Nov 27 21:58 vmlinuz
root@slackware:/boot/efi/EFI/Slackware# cat elilo.conf
chooser=simple
delay=1
timeout=1
#
image=vmlinuz
label=vmlinuz
# initrd=initrd.gz
read-only
append="root=/dev/nvme0n1p3 vga=normal ro"
Hello even, with commented out line before initrd booting is not possible, also please see above desired output of directory. Thanks for trying to help me.
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:
ls -al
total 41M
drwxr-xr-x 2 root root 1.0K Nov 29 17:38 ./
drwxr-xr-x 7 root root 512 Aug 8 14:18 ../
-rwxr-xr-x 1 root root 594 Nov 29 17:37 elilo.conf*
-rwxr-xr-x 1 root root 233K Jun 12 2018 elilo.efi*
-rwxr-xr-x 1 root root 11M Nov 29 17:36 initrd-80.gz*
-rwxr-xr-x 1 root root 2.2K Jan 16 2021 textmenu-message.msg*
-rwxr-xr-x 1 root root 7.5M Nov 29 17:36 vmlinuz-generic-5.15.80*
-rwxr-xr-x 1 root root 12M Nov 29 17:37 vmlinuz-huge-5.15.80*
-rwxr-xr-x 1 root root 12M Nov 22 10:41 vmlinuz-huge-5.19.17*
Also for comparison, here is the contents of my elilo.conf file. The main thing to look at are lines 9 to 12. You will see I use the full name of the kernel I want to boot, rather than the sym link. This is not mandatory, but for me takes any confusion as to what will happen; with the minor problem when I change kernels, I have to edit this file by hand.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.