On 20020213 Michael Holt wrote:
>
>You can use the nt loader to boot linux, is that what you're talking 
>about?
>If so, do this:
>install lilo to your /boot partition - say /dev/hda6 just for kicks.
>Now do dd if=/dev/hda6 of=bootsect.lnx bs=512 count=1
>Now mv bootsect.lnx to your windows boot partition - C?
>Append the following to the bottom of your boot.ini:
>c:\bootsect.lnx="Mandrake the best OS in the world - why am I dual 
>booting?"
>
>You should be able to select linux from the boot menu now.
>

With the problem that everytime you reinstall kernel and re-run lilo,
your entry in windows menu becomes useless.

I was thinking on a patch for lilo, suitable for dual-boot envs where
windows rules the boot sequence, something like:

/etc/sysconfig/installkernel:
...
# Do we need to copy the boot sector ?
BSCOPY=["yes"|"no"|""]
BSDEST=/mnt/win_c/bootsect.lnx
...

/sbin/installkernel:

BOOTPART=`get boot partition`
[[ $BSCOPY = "yes" ]] && dd if=$BOOTPART of=$BSDEST bs=512 count=1

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:[EMAIL PROTECTED]
Mandrake Linux release 8.2 (Cooker) for i586
Linux werewolf 2.4.18-pre9-slb2 #1 SMP Tue Feb 12 20:16:13 CET 2002 i686

Reply via email to