1 # the following variables are available in the template:
3 # $INTERFACE_ (interface for the terminalserver)
4 # $IP_ (ip for the terminalserver to bind)
5 # $NETMASK_ (network mask)
7 # $NAMESERVERS_ (nameservers for the nodes)
8 # $IPRANGE_FROM_ (user configured iprange, first ip)
9 # $IPRANGE_TO_ (user configured iprange, last ip)
10 # $NETWORK_ (first ip in this subnet)
11 # $OPTIONS_ (options for grml-terminalserver)
12 # $BOOT_ARGS_ (boot arguments for the nodes)
15 # templates are shellscript fragments and will be sourced from the
21 # default boot arguments used for both grub and pxelinux
22 default_boot_args_="ramdisk_size=24000 root=/dev/ram0 rw \
23 init=/etc/init nfsdir=$IP_:$MOUNT_POINT_ nodhcp noprompt noeject \
26 # special boot arguments required by grub
27 grub_def_boot_args_="/linux26 $default_boot_args_"
29 # special boot arguments required by pxelinux
30 pxe_def_boot_args_="$default_boot_args_ initrd=minirt26.gz"
32 # default arguments for framebuffer console
33 def_fb_args_="vga=791"
34 no_fb_args_="vga=normal"
40 cat >"$TFTPD_DATA_DIR_/menu.lst" <<EOT
45 kernel $grub_def_boot_args_ $def_fb_args_ $BOOT_ARGS_
48 title GRML no framebuffer
50 kernel $grub_def_boot_args_ $no_fb_args_ $BOOT_ARGS_
54 kernel $grub_def_boot_args_ small $def_fb_args_ $BOOT_ARGS_
59 kernel $grub_def_boot_args_ small $no_fb_args_ $BOOT_ARGS_
64 kernel $grub_def_boot_args_ debuginitrd $def_fb_args_ $BOOT_ARGS_
67 title GRML debuginit nofb
69 kernel $grub_def_boot_args_ debuginitrd $no_fb_args_ $BOOT_ARGS_
74 kernel $grub_def_boot_args_ $no_fb_args_
82 configfile (nd)/menu.lst
89 ## create pxelinux config
92 cat >"$TFTPD_DATA_DIR_/pxelinux.cfg/default" <<EOT
94 APPEND $pxe_def_boot_args_ $def_fb_args_ $BOOT_ARGS_
101 APPEND $pxe_def_boot_args_ $def_fb_args_ $BOOT_ARGS_
104 APPEND $pxe_def_boot_args_ $no_fb_args_ $BOOT_ARGS_
107 APPEND $pxe_def_boot_args_ small $def_fb_args_ $BOOT_ARGS_
110 APPEND $pxe_def_boot_args_ small $no_fb_args_ $BOOT_ARGS_
113 APPEND $pxe_def_boot_args_ debuginit $def_fb_args_ $BOOT_ARGS_
116 APPEND $pxe_def_boot_args_ debuginit $no_fb_args_ $BOOT_ARGS_
119 APPEND $pxe_def_boot_args_ $no_fb_args_