Nope, not good enough. Also had to symlink it into /etc/initramfs/post-update.d. Here's /root/bin/lilo.post for the main Linux partition:
#!/bin/bash dd if=/dev/sda4 of=/root/sda4-lilo.bin bs=512 count=1 if [ -e /media/sda3/MSDOS.SYS ]; then cp -f /root/sda4-lilo.bin /media/sda3/debian.bin else echo /media/sda3 \(Windows partition\) is not mounted, aborting! >&2 exit 1 fi echo Localized lilo \($0\) tasks complete.
Still need to wait until some action triggers LILO again to see if this is really going to work. A symlink might not be the answer.
last updated 2024-07-01 01:16:27. served from tektonic.jcomeau.com