How I deal with root-mirror and two boot-partitions:

/etc/lilo.conf:
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
default=linux
timeout=50
root=/dev/md1
read-only
image=/boot/vmlinuz
        label=linux
# see /sbin/lilo, /sbin/lilo.real! - osma 1999-04-10
image=/boot.alt/vmlinuz
        label=linux-alt
image=/boot/vmlinuz.old
        label=old
image=/boot/memtest86
        label=memtest

/sbin/lilo:
#!/bin/sh
mount /boot.alt
# copy latest kernel images to mirror boot partition
cp -af /boot/vmli* /boot/Sys* /boot.alt
# install primary boot sector
/sbin/lilo.real $*
# install an alternate boot sector on the second drive
/sbin/lilo.real $* -m /boot.alt/map -D linux-alt -i /boot.alt/boot.b -b /dev/hdc
umount /boot.alt

/etc/fstab:
/dev/md0                /             ext2 defaults                     1 1
/dev/hda1               /boot         ext2 defaults,nodev,nosuid        1 2
/dev/hdc1               /boot.alt     ext2 defaults,nodev,nosuid,noauto 1 2

-- 
Osma Ahvenlampi

Reply via email to