help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB netboot with HTTP download


From: Andrey Borzenkov
Subject: Re: GRUB netboot with HTTP download
Date: Sat, 31 Aug 2013 09:11:32 +0400

В Wed, 28 Aug 2013 19:38:16 +0200
Daniel Dehennin <address@hidden> пишет:

> Hello,
> 
> I try to setup a DHCP/TFTP/HTTP netboot but always get the rescue shell.
> 

Are you using current trunk?

> I start with grub-mknetdir:
> 
>   /usr/sbin/grub-mknetdir --net-directory=tftp --subdir=grub --modules=http
> 
> I would like to make grub use HTTP to download files, so I modify the
> grub image to include http and set the prefix:
> 
>     grub-mkimage -d /usr/lib/grub/x86_64-efi -O x86_64-efi \
>         --output=tftp/grub/x86_64-efi/core.efi \
>         --prefix='(http,10.0.0.1)/grub' \
>         tftp http efinet
> 
> This result in the following:
> 
>     error: no server is specified.
>     grub rescue> set
>     net_default_server=
>     prefix=(http,10.0.0.1)/grub
>     pxe_default_server=
>     root=http,10.0.0.1
>     grub rescue> ls
>     (hd0) (hd1)
> 
> The error message seems to come from grub-core/net/net.c[1] resulting of
> a miss-match[2] of my “prefix”.
> 
> I looked for documentation on how to use grub modules but only found
> explanation on PXE[3] and device syntax[4].
> 
> I should have done something wrong but I do not see what, any hints?
> 
> Regards.
> 
> Footnotes: 
> [1]  
> http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/head:/grub-core/net/net.c#L1279
> 
> [2]  
> http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/head:/grub-core/net/net.c#L1262
> 
> [3]  https://www.gnu.org/software/grub/manual/grub.html#Network
> 
> [4]  https://www.gnu.org/software/grub/manual/grub.html#Device-syntax
> 

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]