Mailing List Archive

Booting from HDD
Hello!

You are writing in the docs, that 'LOCALBOOT' can be used instead of/like a
kernel image. But I found out that this only works if the parameter is set
under a 'LABEL' statement. It is not possible to set the DEFAULT statement
to boot from local disk.
Combined with the TIMEOUT parameter it's therefore not possible to boot via
DHCP and if no boot-image is choosen from the menu the system on the local
disk won't be booted because 'LOCALBOOT 0' won't be recognized as a correct
kernel-image.

Is this a bug???


with many thanks for this bootloader
Günther Pfannhauser
Booting from HDD [ In reply to ]
A kernel statement only works under a label statement, so if the docs
say localboot works like a kernel image, I would expect it to appear
under a label. I don't see any problem with the docs.

this works for me.

DEFAULT local
TIMEOUT 100
PROMPT 1
DISPLAY pxelinux.cfg/f0.txt
LABEL nfs
KERNEL kernel
APPEND root=/dev/nfs ip=dhcp
LABEL local
LOCALBOOT 0

On Wed, 15 May 2002, Günther Pfannhauser wrote:

> Hello!
>
> You are writing in the docs, that 'LOCALBOOT' can be used instead of/like a
> kernel image. But I found out that this only works if the parameter is set
> under a 'LABEL' statement. It is not possible to set the DEFAULT statement
> to boot from local disk.
> Combined with the TIMEOUT parameter it's therefore not possible to boot via
> DHCP and if no boot-image is choosen from the menu the system on the local
> disk won't be booted because 'LOCALBOOT 0' won't be recognized as a correct
> kernel-image.
>
> Is this a bug???
>
>
> with many thanks for this bootloader
> Günther Pfannhauser