X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=templates%2Fgrub-pxelinux_config;h=d224569041a2426b972b6821fc6a8e16d09de95a;hb=7a2bcbd8219850c8f6fd53cc75cf6a0b41f3301a;hp=c2427053e3fbb962ebc7d727f3234d2af674ce24;hpb=9eb109d1329ead397a77bfa8448b7a293e08421a;p=grml-terminalserver.git diff --git a/templates/grub-pxelinux_config b/templates/grub-pxelinux_config index c242705..d224569 100644 --- a/templates/grub-pxelinux_config +++ b/templates/grub-pxelinux_config @@ -1,5 +1,3 @@ -#!/bin/sh i like colors :) -# # the following variables are available in the template: # # $INTERFACE_ (interface for the terminalserver) @@ -21,9 +19,14 @@ # default boot arguments used for both grub and pxelinux -default_boot_args_="ramdisk_size=16384 root=/dev/ram0 rw \ +if [ -e '/live/cow' ]; then + default_boot_args_="root=/dev/nfs rw nfsroot=$IP_:$MOUNT_POINT_ \ +boot=live lang=us nomce quiet apm=power-off nodhcp noprompt noeject" +else + default_boot_args_="ramdisk_size=24000 root=/dev/ram0 rw \ init=/etc/init nfsdir=$IP_:$MOUNT_POINT_ nodhcp noprompt noeject \ -apm=power-off nomce" +apm=power-off nomce lang=us" +fi # special boot arguments required by grub grub_def_boot_args_="/linux26 $default_boot_args_" @@ -121,7 +124,7 @@ KERNEL linux26 APPEND $pxe_def_boot_args_ $no_fb_args_ LABEL memtest KERNEL memtest -APPEND initrd= +APPEND fix EOT