Package: lilo-installer
Version: 1.14
Severity: important

(Architecture i386)

Hi,

I've set 

d-i debian-installer/kernel/linux/link_in_boot boolen true 

in my preseeds. however, lilo-installer creates a lilo.conf with
"image=/vmlinuz" hardcoded. Hence, lilo-installer fails.

I've created my own script to install lilo. It searchs kernel:

unset IMAGE IMAGE_OLD INITRD INITRD_OLD
# Find vmlinuz and initrd.img
if [ -f /target/boot/vmlinuz ]; then
  IMAGE=/boot/vmlinuz
  IMAGE_OLD="${IMAGE}.old"
  if [ -f "/target/boot/initrd.img" ]; then
    INITRD="    initrd=/boot/initrd.img"
    INITRD_OLD="${INITRD}.old"
  fi
elif [ -f /target/vmlinuz ]; then
  IMAGE=/vmlinuz
  IMAGE_OLD="${IMAGE}.old"
  if [ -f "/target/initrd.img" ]; then
    INITRD="    initrd=/initrd.img"
    INITRD_OLD="${INITRD}.old"
  fi
fi
[ -n "${IMAGE}" ] || Some error .... !!!

and then a pies of cat > /target/etc/lilo.conf <<EOF looks like:

image=${IMAGE}
        label=Linux
        read-only
#       restricted
#       alias=1
${APPEND}
${INITRD}


image=${IMAGE_OLD}
        label=LinuxOLD
        read-only
        optional
#       restricted
#       alias=2
${APPEND}
${INITRD_OLD}



Cheers
     Ondra Medek


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to