Setting up LILO

Introduction

MWE

ls -lF /etc/lilo.conf_example
mv -i /etc/lilo.conf /etc/lilo.conf.dist
sed -r '/^[[:space:]]*(#|$)/d' /etc/lilo.conf.dist > /etc/lilo.conf
vi /etc/lilo.conf

lba32
root = /dev/sda1
timeout = 30

image = /boot/vmlinuz
    label = "Linux"
    read-only
    append = "mitigations=off"

lilo
shutdown -r now

and check after reboot

uname -r
cat /proc/cmdline

Fancy menu

Eventually rebuild your kernel and keep the good-looking menu

ls -lhF /boot/map
vi /etc/lilo.conf

lba32
boot = /dev/sda
root = /dev/sda1
map = /boot/map
install = menu
menu-scheme = Wb:Yr:Wb:Wb
prompt
timeout = 30

image = /vmlinuz
    label = "xenreiser4"
    read-only
    append = "mitigations=off"

image = /boot/vmlinuz
    label = "Linux"
    read-only
    append = "mitigations=off"

and re-install the boot code

lilo

Booting XEN with LILO

See mbootpack

Additional notes

New kernels don’t accept it anymore? (had the issue with 5.5.10)

#vga = 791

GUIDES | LECTURES | BENCHMARKS | SMTP HEALTH