3 # copyright Thomas Lange 2001-2005, lange@debian.org
4 # LILO support may be dropped in a future release
6 FFLAGS
=${FAI_FLAGS// /,}
8 cd $target/boot
&& kernelversion
=$
(ls vmlinuz-
*)
10 # if class NOMBR is defined, write boot loader into root partition, not into mbr
11 ifclass NOMBR
&& BOOT_DEVICE
=$ROOT_PARTITION
14 fcopy
/etc
/lilo.conf ||
{
15 # if the installed kernel is using an initial ramdisk
16 if [ -L $target/initrd.img
]; then
17 initrdopt
="initrd=/initrd.img"
19 # write lilo.conf and install lilo to disk
20 echo "Creating lilo.conf for /vmlinuz"
21 cat > $target/etc
/lilo.conf
<<-EOF
30 append="devfs=nomount $kappend"
44 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
45 ifclass FAI_BOOTPART
&& {
48 mkdir
-p $target/fai-boot
49 cp -a /boot
/vmlinuz-
$rev $target/fai-boot
52 # write lilo.conf and install lilo to disk
53 echo "Add /fai-boot partition to lilo.conf"
55 cat >> $target/etc
/lilo.conf
<<-EOF
56 image=/fai-boot/boot/$kernelversion
58 append="devfs=nomount"
61 mkdir
$target/fai-boot
/etc
62 cp $target/etc
/lilo.conf
$target/fai-boot
/etc
68 # you can also use this
71 $target/sbin
/lilo
-r $target