Daniel Dehennin
2013-08-28 17:38:16 UTC
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
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
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF