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 if [ -e '/live/cow' ]; then
23 default_boot_args_="root=/dev/nfs rw nfsroot=$IP_:$MOUNT_POINT_ \
24 boot=live lang=us nomce quiet apm=power-off"
26 default_boot_args_="ramdisk_size=24000 root=/dev/ram0 rw \
27 init=/etc/init nfsdir=$IP_:$MOUNT_POINT_ nodhcp noprompt noeject \
28 apm=power-off nomce lang=us"
31 # special boot arguments required by grub
32 grub_def_boot_args_="/linux26 $default_boot_args_"
34 # special boot arguments required by pxelinux
35 pxe_def_boot_args_="$default_boot_args_ initrd=minirt26.gz"
37 # default arguments for framebuffer console
38 def_fb_args_="vga=791"
39 no_fb_args_="vga=normal"
45 cat >"$TFTPD_DATA_DIR_/menu.lst" <<EOT
50 kernel $grub_def_boot_args_ $def_fb_args_ $BOOT_ARGS_
53 title GRML no framebuffer
55 kernel $grub_def_boot_args_ $no_fb_args_ $BOOT_ARGS_
59 kernel $grub_def_boot_args_ small $def_fb_args_ $BOOT_ARGS_
64 kernel $grub_def_boot_args_ small $no_fb_args_ $BOOT_ARGS_
69 kernel $grub_def_boot_args_ debuginitrd $def_fb_args_ $BOOT_ARGS_
72 title GRML debuginit nofb
74 kernel $grub_def_boot_args_ debuginitrd $no_fb_args_ $BOOT_ARGS_
79 kernel $grub_def_boot_args_ $no_fb_args_
87 configfile (nd)/menu.lst
94 ## create pxelinux config
97 cat >"$TFTPD_DATA_DIR_/pxelinux.cfg/default" <<EOT
99 APPEND $pxe_def_boot_args_ $def_fb_args_ $BOOT_ARGS_
106 APPEND $pxe_def_boot_args_ $def_fb_args_ $BOOT_ARGS_
109 APPEND $pxe_def_boot_args_ $no_fb_args_ $BOOT_ARGS_
112 APPEND $pxe_def_boot_args_ small $def_fb_args_ $BOOT_ARGS_
115 APPEND $pxe_def_boot_args_ small $no_fb_args_ $BOOT_ARGS_
118 APPEND $pxe_def_boot_args_ debuginit $def_fb_args_ $BOOT_ARGS_
121 APPEND $pxe_def_boot_args_ debuginit $no_fb_args_ $BOOT_ARGS_
124 APPEND $pxe_def_boot_args_ $no_fb_args_