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.
As some of you may know, I added a M.2 NVMe drive to my system, and as a result, had to switch my bootloader to GRUB, since (at the time) it had support for NVMe, whereas LILO did not.
I'm happy to report, as a result of timsoft's patches, I am now able to "resurrect" LILO, and use it as my bootloader once again. A big shout-out to him for submitting the patch. Yes, I do like booting in legacy mode; I'm not yet ready to switch to UEFI. Legacy still works for me, and I don't see that changing anytime soon.
LILO works better for me than GRUB, and while GRUB wasn't bad, its only fault is that it wasn't LILO.
Thanks again!!
Last edited by 1337_powerslacker; 02-27-2018 at 07:26 PM.
Reason: Link to post for LILO patches, even though it's been added to Slackware proper.
I found grub2 to be annoyingly inflexible and automatic. It's basically not possible to adjust the order of entries in the list (outside of manually editing an automatically generated file, which is not recommended), and have fun jumping through hoops if you want to use a sub-entry as the default.
Here here! or Hear Here! whichever you prefer. The only advantage I've ever seen with any form of grub, legacy and especially grub2, is an expanded command altering option on-the-fly, but that comes at the expense of arcane, grub-specific terms, and a plethora of useless, often maddening complexity that serves no good purpose other than what some will call "convenience", by no means a net gain. I want a bootloader to be extremely simple, basically do one job and do it well and be easily human editable text config. LILO does all that and I hope it is available until the day I die.
I'm glad someone solved the NVME issue. Who says LILO is obsolete or not maintained?
Sweet! I am all a-quiver. I have a M.2 NVME drive waiting for 15.0 (REAL SOON NOW!!!! or when it's ready, which ever comes first). I agree with enorbet, too much complexity for too little gain. LILO FTW.
I'm quite frankly surprised at the response to my OP. LILO is more popular than I'd imagined.
For the record, there are some things I love about LILO:
When LILO pops up, you can hit the Tab key and enter the image name followed by the runlevel number. Useful for when you need to re-run the NVIDIA driver for each new iteration of the kernel.
You can customize easily the order in which your entries appear, as well as the default image.
You can specify the image that appears on your LILO boot screen. For example, I have the Slackware_Moonboot.bmp as my background image. Looks pretty cool, if I do say so myself (and I do!)
You can specify the VGA mode in which your boot messages appear. You don't have to settle for the default.
These are just the ones I find most useful. Others may point out additional benefits; I'd love to hear about them.
I found grub2 to be annoyingly inflexible and automatic. It's basically not possible to adjust the order of entries in the list (outside of manually editing an automatically generated file, which is not recommended), and have fun jumping through hoops if you want to use a sub-entry as the default.
I do it all the time. You add a script that runs during grub-mkconfig which runs prior to the others. (I've posted my copy in the forum more than once along with instructions.) I'm not on my Slackware machine at the moment and my use case isn't one where I'd prefer for windows to come up by default. For that latter case, you set GRUB_DEFAULT to point to the entry you want. See https://www.gnu.org/software/grub/ma...-configuration
I have the Slackware_Moonboot.bmp as my background image.
Would you care to share your image to the slackware-wallpapers SlackBuild? If you are not the creator, some info about where you got it would be helpful too.
I have been slowly re-working the slackware-wallpapers SlackBuild and have been adding lilo boot images (currently 4) that will get installed into /boot/images in addition to the regular wallpapers.
I must admit - I left lilo behind long time ago ... the number of times I forgot to run lilo after changing the conf-file. Likewise - grub2 leaves me just stone cold ... but legacy grub is just awesome. Discontinued - yes it is, but has covered me for over 10 years now and will continue to do so as long as I don't use uefi.
Would you care to share your image to the slackware-wallpapers SlackBuild? If you are not the creator, some info about where you got it would be helpful too.
I have been slowly re-working the slackware-wallpapers SlackBuild and have been adding lilo boot images (currently 4) that will get installed into /boot/images in addition to the regular wallpapers.
Since I can't attach the .bmp file directly, you are welcome to PM me directly so I can email you the file in question. As for the source, I got it from a site dedicated to Slackware 10.2 which, unfortunately, has gone offline, and I got the file some years ago, and don't recall the site address. It detailed how to modify the lilo.conf file to accommodate the bmp file. I will provide this file as well upon request.
I recently discovered that LILO gives us the tools for .bmp files once they fit even minimal size requirements. I can't believe it took me this long to understand that the command below does all the hard work....
Code:
bash# lilo -E foo.bmp
So simple I should've known LILO would be like that. I guess all the "ancient and obsolete" FUD worked it's way into my psyche
# general configuration:
timeout 3
default 3
color light-blue/black light-cyan/blue
# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*
# (2) Windows
title Windows7 Pro64 (/dev/sda1)
rootnoverify (hd0,0)
makeactive
chainloader +1
# lilo
title Slackware64-14.1 nouveau lilo (/dev/sda7)
root (hd0,6)
chainloader +1
# Linux bootable partition config begins
title Slackware64-14.1 nouveau (/dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 ro vga=normal
# Linux bootable partition config ends
# lilo
title Slackware64-14.2 nvidia lilo (/dev/sda8)
root (hd0,7)
chainloader +1
# Linux bootable partition config begins
title Slackware64-14.2 nvidia (/dev/sda8)
root (hd0,7)
kernel /boot/vmlinuz root=/dev/sda8 ro vga=normal
# Linux bootable partition config ends
# other Linux using GRUB2
title Debian Jessie (/dev/sda9)
root (hd0,8)
chainloader +1
I must admit - I left lilo behind long time ago ... the number of times I forgot to run lilo after changing the conf-file. Likewise - grub2 leaves me just stone cold ... but legacy grub is just awesome. Discontinued - yes it is, but has covered me for over 10 years now and will continue to do so as long as I don't use uefi.
I've grown to like not having to edit any files after upgrading the kernel, which grub2 allows.
I've got AMD processors on most of my machines and have been running this script as root prior to reboot after an upgrade...
Code:
#!/bin/bash
# expects that mkinitrd.conf is set to build firmware as well
if [ "x${1}" == "x" ]; then
echo "Add a kernel version number!"
exit 1
fi
~/bin/make-amd-ucode-cpio.sh
$( /usr/share/mkinitrd/mkinitrd_command_generator.sh -k ${1} -a "-o /boot/initrd-${1}.gz" -r )
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
(The make-amd-ucode-cpio.sh file is...
Code:
#! /bin/sh
set -x
set -e
LIB=/lib/firmware/amd-ucode/
TDIR=kernel/x86/microcode
CPIO=/boot/amd-ucode.cpio
echo "Create the $CPIO file from the $LIB directory of files"
rm -rf /tmp/amd-ucode-cpio
mkdir -p /tmp/amd-ucode-cpio
cd /tmp/amd-ucode-cpio
mkdir -p $TDIR
find $LIB -type f -name \*bin | sort | xargs cat > $TDIR/AuthenticAMD.bin
find . | cpio --no-absolute-filenames -H newc -o -F $CPIO
exit
)
I've edited /etc/mkinitrd.conf as well, adding the line
Code:
MICROCODE_ARCH="/boot/amd-ucode.cpio"
so everything is ready.
I upgrade the kernel (yes, that is stupidly risky versus an install, reboot, then uninstall the old one), run the first script, and then reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.