LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-27-2018, 07:20 PM   #1
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
LILO lives again!! :D


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.
 
Old 02-27-2018, 08:26 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
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.
 
2 members found this post helpful.
Old 02-27-2018, 11:57 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
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?
 
3 members found this post helpful.
Old 02-28-2018, 01:56 AM   #4
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
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.
 
1 members found this post helpful.
Old 02-28-2018, 05:07 AM   #5
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Thanks for the report 1337_powerslacker

And a BIG THANKS to timsoft for the patches.

I will be using lilo as long as my BIOSen allow legacy boot mode.

And ... we lilo luddites need to stick together

Thanks again !

-- kjh

Last edited by kjhambrick; 02-28-2018 at 05:08 AM.
 
2 members found this post helpful.
Old 02-28-2018, 08:18 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Cool

Quote:
Originally Posted by kjhambrick View Post
And ... we lilo luddites need to stick together
I love lilo.
 
2 members found this post helpful.
Old 02-28-2018, 02:58 PM   #7
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862

Original Poster
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
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:
  1. 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.
  2. You can customize easily the order in which your entries appear, as well as the default image.
  3. 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!)
  4. 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.
 
4 members found this post helpful.
Old 02-28-2018, 03:59 PM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by montagdude View Post
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

You can also turn off os-prober and write the script manually. https://www.gnu.org/software/grub/ma...-manual-config

You can nonetheless not care for Grub and use lilo/elilo instead. I'm not married to any of them.
 
1 members found this post helpful.
Old 02-28-2018, 04:06 PM   #9
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Another LILO lover here! It's always been simple, reliable and flexible, and I will continue using it for as long as it works.

Been learning SYSLINUX against the day LILO ceases to be viable, but I'd much rather see LILO maintained into the future.
 
4 members found this post helpful.
Old 02-28-2018, 04:31 PM   #10
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by 1337_powerslacker View Post
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.
 
Old 02-28-2018, 05:34 PM   #11
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
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.
 
2 members found this post helpful.
Old 02-28-2018, 06:11 PM   #12
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862

Original Poster
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by Skaendo View Post
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.
 
Old 02-28-2018, 06:30 PM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
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
 
2 members found this post helpful.
Old 02-28-2018, 09:51 PM   #14
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
I'm using all 3 of them.

menu.lst

# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,1)
# /dev/sda3 (hd0,2)
#

# FRAMEBUFFER RESOLUTION SETTINGS
# +-------------------------------------------------+
# | 640x480 800x600 1024x768 1280x1024
# ----+--------------------------------------------
# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
# +-------------------------------------------------+
# for more details and different resolutions see
# https://wiki.archlinux.org/index.php...fer_resolution

# 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
 
2 members found this post helpful.
Old 02-28-2018, 10:27 PM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by perbh View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 12:10 PM
Freedom , it still lives here. puppypc LinuxQuestions.org Member Intro 4 11-15-2010 07:11 PM
The Scancat LIVES!!! Cage47 General 4 01-31-2010 02:03 PM
LiVES on FC4 worldgnat Linux - Software 1 06-22-2005 10:55 PM
The BSoD lives Zuggy General 16 01-12-2005 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration