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.
I still have not been able to configure elilo.conf for a second kernel version
You don't have to edit elilo.conf nor to copy the new kernel to /boot/efi/EFI/Slackware, that's eliloconfig's job.
Jut insure that /boot/vmlinuz be a symlink to the new kernel (also installed in /boot) and, as root, run "eliloconfig". That should work. If you have a file /boot/inird.img and use a generic kernel, that will work too.
Actually eliloconfig calls efibootmgr to register a boot entry in the firmware for your new kernel, but better let it do its job that manually run efibootmgr yourself, unless you be really comfortable with that command and its options.
Upgrading your kernel
This task is now much easier than it used to be. All you really need to do is copy vmlinuz onto the
ESP on top of the old kernel. No need to edit any configs or add any boot entries, unless you want to.
Note that you can edit the config in place and ELILO will pick up the changes on next boot, no need
to run any commands like with the old lilo.
Quote:
Originally Posted by Didier Spaier
Actually eliloconfig calls efibootmgr to register a boot entry in the firmware for your new kernel, but better let it do its job that manually run efibootmgr yourself, unless you be really comfortable with that command and its options.
I have been able to understand efibootmgr and did deleted and created a few uefi boot options.I'm comfortable with it.
My laptop has a hard disk and a ssd, so even if one of the devices is unbootable I can use the other one.
Last edited by jheengut; 01-26-2016 at 12:47 AM.
Reason: forgot the upgrading part
eliloconfig just needs to be run once to create/register the appropriate boot partition. It won't copy the generic kernel nor create an initrd. If your drive won't boot then the UEFI can't find your ESP (/boot/efi) or the ESP if not a fat/vfat partition. After a full install, when later you need to update the kernel, or add a second boot kernel, initrd etc, all you need to do is
1. copy the new kernel (and initrd if any)
2. edit eliloconfig as needed.
You don't need to run elilocionfig/efibootmgr to re-register a boot entry. For example, I dual boot 14.1 and 14.2 (current). I run mkinitrd as normal. After I did a full install of current on /dev/sda, I added 14.1 on /dev/sdb by simpley copying the kernel, initrd and adding a stanza to elilo.conf. <TAB> displays the labels otherwise current will automatically boot.
My elilo.conf
Actually eliloconfig does copy the kernel, and the initrd if found, to /boot/efi/EFI/Slackware/
However it writes a new /boot/efi/EFI/Slackware/elilo.conf every time it runs. For that reason it records only one boot entry.
But if you just want to replace your kernel keeping only one boot entry, that's fine.
Only if you want to have several boot entries managed by the PE/COFF file /boot/efi/EFI/Slackware/elilo.efi (provided by elilo as boot/elilo-x86_64.efi then copied by eliloconfig) it is necessary to manually edit /boot/efi/EFI/Slackware/elilo.conf and copy the kernel and possibly the initrd yourself.
PS Only caveat: eliloconfig won't clean the house for you: It won't remove from /boot/efi/EFI/Slackware/ a kernel or an initrd that you won't use anymore.
Last edited by Didier Spaier; 01-26-2016 at 03:18 AM.
Reason: last sentence simplified.
I installed slackware 14.1. It works fine on my MSI GP60 2PE Gaming laptop. I upgraded to Slackware-current. The kernel 3.10 boots fine. But if I copy the kernel 4.4 and copy it as /boot/efi/EFI/Slackware/vmlinuz. It does not boot at all.
The laptop just keeps on rebooting to elilo, looping forever.
With elilo I'm not supposed to rerun eliloconfig or efibootmgr. None of them. How am I suppose to debug elilo or get a message indicating me the error?
With elilo I'm not supposed to rerun eliloconfig or efibootmgr. None of them.
Maybe you are not supposed to, but still that would be simpler IMO.
Quote:
How am I suppose to debug elilo or get a message indicating me the error?
This project is orphaned, so you will have to find out yourself. I tried to compile elilo from source, no luck. Have a look at the source and find out yourself if you really want. Not even knowing what elilo command was used to build the efi images shipped in the package and unless you succeed in building the elilo binary yourself that's not going to be easy, I'm afraid. Good luck
Last edited by Didier Spaier; 01-29-2016 at 03:47 AM.
Maybe you are not supposed to, but still that would be simpler IMO.
I just cleared some efi values, I was unable to boot my system after running eliloconfig/efibootmgr too much(I read thats a bug too).
My best bet is to install grub in \EFI partition.
I will test it.
Thanks for mentioning that elilo is orphaned. But Pat did mentioned that he will take care of lilo, dunno if elilo will fall under his umbrella too :-).
I just cleared some efi values, I was unable to boot my system after running eliloconfig/efibootmgr too much(I read thats a bug too).
We can't know for sure if this is a bug with the information provided. I suggest that you use efibootmgr alone to check all firmware menu entries.
Other than that, did you try having a single entry in elilo.conf with only the 4.4 kernel? as we don't know how the efi image provided in the elilo package was compiled, maybe it accepts just the first entry in the config file?
I will make some tests in a VM to check that myself.
Last edited by Didier Spaier; 01-30-2016 at 05:20 AM.
I installed slackware 14.1. It works fine on my MSI GP60 2PE Gaming laptop. I upgraded to Slackware-current. The kernel 3.10 boots fine. But if I copy the kernel 4.4 and copy it as /boot/efi/EFI/Slackware/vmlinuz. It does not boot at all.
The laptop just keeps on rebooting to elilo, looping forever.
With elilo I'm not supposed to rerun eliloconfig or efibootmgr. None of them. How am I suppose to debug elilo or get a message indicating me the error?
Check that these symlinks points to your 4.4 kernel before you run eliloconfig and reboo:
You will never get a chance/choice booting any of these; you don't get the opportunity:
To give oneself some time and choice let elilo.conf begin with 'prompt' as first line to force interactive mode (see http://sourceforge.net/projects/elilo/files/)
with a timeout much longer than 1 (=0.1 sec) to be able to pick another than the default.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.