Blame

573ccc Anonymous 2026-01-31 03:25:50 1
# Lilo
2
3
====== lilo bootloader ======
4
5
6
LILO (Linux Loader) is a boot loader for Linux and the default bootloader for non EFI slackware installs.
7
8
we need multiple kernels to boot. whether you run stable or -current you want to always have a known working kernel to fall back on. first we will install the kernels of your choice using slackupdr
9
10
[[https://wigums.ddns.net/dokuwiki/doku.php?id=slackupdr|slackupdr]]
11
12
once your kernels are installed edit lilo.conf
13
14
<code>nano /etc/lilo/conf</code>
15
16
find the kernel stanza and we will expand it to include the new kernels. we are also going to add boot entries for huge versus generic kernels. find this stanza
17
18
<code># Linux bootable partition config begins
19
image = /boot/vmlinuz
20
root = /dev/sda2
21
label = huge
22
read-only</code>
23
24
we will add stanzas for the kernels we've installed
25
26
here is a default lilo.conf as generated by liloconfig
27
28
<code># LILO configuration file
29
# generated by 'liloconfig'
30
#
31
# Start LILO global section
32
# Append any additional kernel parameters:
33
append=" "
34
35
boot = /dev/sda
36
# This option loads the kernel and initrd much faster:
37
compact
38
39
# Boot BMP Image.
40
# Bitmap in BMP format: 640x480x8
41
bitmap = /boot/slack.bmp
42
# Menu colors (foreground, background, shadow, highlighted
43
# foreground, highlighted background, highlighted shadow):
44
bmp-colors = 255,0,255,0,255,0
45
# Location of the option table: location x, location y, number of
46
# columns, lines per column (max 15), "spill" (this is how many
47
# entries must be in the first column before the next begins to
48
# be used. We don't specify it here, as there's just one column.
49
bmp-table = 60,6,1,16
50
# Timer location x, timer location y, foreground color,
51
# background color, shadow color.
52
bmp-timer = 65,27,0,255
53
54
# Standard menu.
55
# Or, you can comment out the bitmap menu above and
56
# use a boot message with the standard menu:
57
#message = /boot/boot_message.txt
58
59
# Wait until the timeout to boot (if commented out, boot the
60
# first entry immediately):
61
prompt
62
# Timeout before the first entry boots.
63
# This is given in tenths of a second, so 600 for every minute:
64
timeout = 1200
65
# Override dangerous defaults that rewrite the partition table:
66
change-rules
67
reset
68
# Normal VGA console
69
vga = normal
70
# Ask for video mode at boot (time out to normal in 30s)
71
#vga = ask
72
# VESA framebuffer console @ 1024x768x64k
73
#vga=791
74
# VESA framebuffer console @ 1024x768x32k
75
#vga=790
76
# VESA framebuffer console @ 1024x768x256
77
#vga=773
78
# VESA framebuffer console @ 800x600x64k
79
#vga=788
80
# VESA framebuffer console @ 800x600x32k
81
#vga=787
82
# VESA framebuffer console @ 800x600x256
83
#vga=771
84
# VESA framebuffer console @ 640x480x64k
85
#vga=785
86
# VESA framebuffer console @ 640x480x32k
87
#vga=784
88
# VESA framebuffer console @ 640x480x256
89
#vga=769
90
# End LILO global section
91
# Linux bootable partition config begins
92
image = /boot/vmlinuz
93
root = /dev/sda2
94
label = Linux
95
read-only
96
# Linux bootable partition config ends</code>
97
98
<code>prompt
99
timeout=50
100
boot=/dev/sda
101
root=/dev/sda2
102
lba32
103
compact
104
bitmap = /boot/Slackware_Moonboot.bmp
105
bmp-colors = 255,0,255,0,255,0
106
bmp-table = 60,6,1,16
107
bmp-timer = 65,27,0,255
108
append="mitigations=off"
109
vga=normal
110
default=Gen6.9.1
111
image=/boot/vmlinuz-generic-6.6.30
112
label=Gen6.6.30
113
initrd=/boot/initrd-6.6.30.gz
114
read-only
115
image=/boot/vmlinuz-generic-6.9.1
116
label=Gen6.9.1
117
initrd=/boot/initrd-6.9.1.gz
118
read-only
119
image=/boot/vmlinuz-huge-6.6.30
120
label=Hug6.6.30
121
read-only
122
image=/boot/vmlinuz-huge-6.9.1
123
label=Hug6.9.1
124
read-only