X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=templates%2Fgrub-pxelinux_config;h=fb35176e01226b0f9bef5e500e71db12a08058a7;hb=ba2661cc1e2ccb9523ac6180f8410c2005cfa5cd;hp=0ee97b69ab0a8b00ac771e48d37ae5a8e77f9f77;hpb=065f664034dc9d2dd34b1dde30abdf1545cf1015;p=grml-terminalserver.git diff --git a/templates/grub-pxelinux_config b/templates/grub-pxelinux_config index 0ee97b6..fb35176 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" +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_" @@ -116,12 +119,12 @@ APPEND $pxe_def_boot_args_ debuginit $def_fb_args_ $BOOT_ARGS_ LABEL debuginit KERNEL linux26 APPEND $pxe_def_boot_args_ debuginit $no_fb_args_ $BOOT_ARGS_ -LABEL resuce +LABEL rescue KERNEL linux26 APPEND $pxe_def_boot_args_ $no_fb_args_ LABEL memtest KERNEL memtest -APPEND initrd= +APPEND fix EOT