help-grub
[Top][All Lists]
Advanced

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

GRUB netboot with HTTP download


From: Daniel Dehennin
Subject: GRUB netboot with HTTP download
Date: Wed, 28 Aug 2013 19:38:16 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hello,

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

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

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF

Attachment: pgpNkKzZZJehk.pgp
Description: PGP signature


reply via email to

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