Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PXE network boot with grub2, root variable empty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Sat Dec 03, 2016 10:40 pm    Post subject: PXE network boot with grub2, root variable empty Reply with quote

I was running syslinux for network booting, configured tftp and dhcp correctly. Everything runs correctly, and I can boot from network, but I now I am trying to do the same and replace syslinux in favor to grub2.

I therefore ran the command: grub-mknetdir --net-directory=/warehouse/TFTProot/ and modified the file to send in dhcpd.conf

grub starts from network, but it complains about missing root variable, and enters in rescue mode.

I realized that there are some basic variables empty: prefix, pxe_default_server, root.

I looked all over the internet and did not find any way to set them, and it does not even read the grub.cfg file, so I have no idea what is happening here.

Is this a bug, or did I miss something in server's config? I would like some advice as every pages I looked around do not say anything about this.

Thanks

EDIT:

Inside grub rescue (on the client, once booted with PXE), I can manually type:

Code:

set root=(tftp,10.50.1.10)
set prefix=(tftp,10.50.1.10)/boot/grub
insmod normal
normal


And then, I have my grub menu and all is working, but.... how to fill those variables automatically?
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Mon Dec 26, 2016 11:47 pm    Post subject: Re: PXE network boot with grub2, root variable empty Reply with quote

Do you have a particular reason for migrating from syslinux to grub2 for network boot?

If not then I would revert, if so I would find the support system provided by grub2 and ask your question there.
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Tue Dec 27, 2016 1:32 am    Post subject: Re: PXE network boot with grub2, root variable empty Reply with quote

gerdesj wrote:
Do you have a particular reason for migrating from syslinux to grub2 for network boot?

If not then I would revert, if so I would find the support system provided by grub2 and ask your question there.


The reason is that syslinux' memdisk does not work good with EFI boot, tried Windows install iso, and works good in non efi, but hangs in EFI boot mode. Unless I can find another workaround for this, then I can not use syslinux correctly (But I would prefer it as it is more simple)
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum