Bug#711799: PXE error: no server is specified

Steven Chamberlain steven at pyro.eu.org
Tue Feb 4 04:06:39 UTC 2014


severity 711799 grave
found 711799 grub2/2.00-22
tags 711799 + d-i
affects 711799 debian-installer
user debian-bsd at lists.debian.org
usertags 711799 kfreebsd
thanks

Hi,

I maybe should have set a higher severity for this.  It doesn't make the
whole grub2 package useless, but it has broken the GRUB2-based images
built by d-i (which are used only for kfreebsd and hurd) on systems
where it was working before.  Feel free to downgrade if this severity is
wrong.

Example of d-i image with a broken grub2pxe file:
http://d-i.debian.org/daily-images/kfreebsd-i386/20140203-00:49/netboot-9/netboot.tar.gz

On wheezy using qemu+iPXE with -boot n -net nic -net
user,bootfile=grub2pxe,tftp=. :

> net0: 10.0.2.15/255.255.255.0 gw 10.0.2.2
> Next server: 10.0.2.2
> Filename: grub2pxe
> tftp://10.0.2.2/grub2pxe...ok
[screen blanks]
>  GNU GRUB  version 2.0-22
>     Minimal BASH-like line editing is supported. For the first word, TAB
>     lists possible command completions. Anywhere else TAB lists possible
>     device or file completions.
> grub>
[gets stuck here instead of loading grub.cfg and showing menu]

> grub> set
> color_highlight=black/white
> color_normal=white/black
> color_normal=white/black
> feature_200_final=y
> feature_all_video_module=y
> feature_chainloader_bpb=y
> feature_default_font_path=y
> feature_menuentry_id=y
> feature_menuentry_options=y
> feature_ntldr=y
> feature_platform_search_hint=y
> feature_timeout_style=y
> grub_cpu=i386
> grub_platform=pc
> lang=
> locale_dir=
> net_default_server=
> pager=
> prefix=(pxe)/debian-installer/kfreebsd-i386
> pxe_default_server=
> root=pxe
> secondary_locale_dir=

Prefix is correctly set!  (No sign of bug #695500)

There are two problems I think:
* no DHCP-assigned network settings copied from the PXE environment
* no TFTP server IP copied from the PXE environment


FWIW I tried Colin Watson's suggestion from [0] and rebuilt grub2pxe for
i386-pc-pxe, instead of the existing code which combines pxeboot.img and
i386-pc by itself:

> grub-mkimage -O i386-pc-pxe --prefix="(pxe)/debian-installer/kfreebsd-amd64" -o tmp/netboot-9/dir_tree/debian-installer/kfreebsd-amd64/grub2pxe bsd cpuid echo gfxterm gzio minicmd normal png vbe pxe

but still the same problem.

[0]: http://bugs.debian.org/695500#117

Thanks,



Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org



More information about the Pkg-grub-devel mailing list