[gPXE] gpxe booting with NFS

DiP aspamkiller at yandex.ru
Wed Aug 17 18:32:01 EDT 2011


Hi all

I`m confusing to search how to get gpxe compiled with NFS support
Is there any written directions?
rom-o-matic do not generates images with NFS support, or I didn`t found where
to switch that on.

For now I have reduced netboot with tftp switched off, only
http+nfs root. I wonder to make it to use only NFS at all for that.

Thank for advance

//Dimitri

Linux cc 2.6.38-pf7-inkvm #2 SMP PREEMPT Thu May 19 21:02:41 EEST 2011 i686
QEMU Virtual CPU version 0.15.0 GenuineIntel GNU/Linux

Archlinux

$ pacman -Qs syslinux
local/syslinux 4.04-2
    Collection of boot loaders that boot from FAT, ext2/3/4 and btrfs
filesystems, from CDs and via PXE

$ pacman -Qs mtools  
local/mtools 4.0.17-1
    A collection of utilities to access MS-DOS disks

<code>
  cd gpxe-1.0.1/src
  make
[...]
  [DEPS] core/getkey.c
  [DEPS] core/nvo.c
  [DEPS] core/fnrec.c
  [DEPS] core/console.c
  [DEPS] core/image.c
  [BUILD] bin/__umoddi3.o
  [BUILD] bin/__udivdi3.o
  [BUILD] bin/__moddi3.o
  [BUILD] bin/memcpy.o
  [BUILD] bin/icc.o
  [BUILD] bin/__divdi3.o
  [BUILD] bin/__udivmoddi4.o
  [BUILD] bin/ctype.o
  [BUILD] bin/interface.o
  [BUILD] bin/image.o
core/image.c: In function 'image_autoload':
core/image.c:218:2: error: variable '__table_entries' set but not used
[-Werror=unused-but-set-variable] core/image.c:218:2: error: variable
'__table_entries' set but not used [-Werror=unused-but-set-variable] cc1: all
warnings being treated as errors

make: *** [bin/image.o] Error 1
</code>

<code>
$ cd gpxe-git/src/
$ make
[...]
  [DEPS] core/null_nap.c
  [DEPS] core/downloader.c
  [DEPS] core/main.c
  [DEPS] core/settings.c
  [DEPS] core/getkey.c
  [DEPS] core/nvo.c
  [DEPS] core/fnrec.c
  [DEPS] core/console.c
  [DEPS] core/image.c
  [BUILD] bin/__umoddi3.o
  [BUILD] bin/__udivdi3.o
  [BUILD] bin/__moddi3.o
  [BUILD] bin/memcpy.o
  [BUILD] bin/icc.o
  [BUILD] bin/__divdi3.o
  [BUILD] bin/__udivmoddi4.o
  [BUILD] bin/ctype.o
  [BUILD] bin/interface.o
  [BUILD] bin/image.o
core/image.c: In function 'alloc_image':
core/image.c:68:3: error: the comparison will always evaluate as 'false' for
the address of 'free_image' will never be NULL [-Werror=address] core/image.c:
In function 'image_autoload': core/image.c:219:2: error: variable
'__table_entries' set but not used [-Werror=unused-but-set-variable]
core/image.c:219:2: error: variable '__table_entries' set but not used
[-Werror=unused-but-set-variable] cc1: all warnings being treated as errors

make: *** [bin/image.o] Error 1
</code>


More information about the gPXE mailing list