X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=templates%2Fgrub-pxelinux_config;h=d2fb6e9c79053bf3e2a2c90d24249783235d497b;hb=3bcb86f2636df4192e87e6b58609ad6da0afdf56;hp=59bda5869a2a5c0b600492dca9f69777bd3d07e7;hpb=65cff8890bb1d209050addbecfdf64388b9604f9;p=grml-terminalserver.git diff --git a/templates/grub-pxelinux_config b/templates/grub-pxelinux_config index 59bda58..d2fb6e9 100644 --- a/templates/grub-pxelinux_config +++ b/templates/grub-pxelinux_config @@ -20,7 +20,7 @@ if grep -q live-media-path= /proc/cmdline 2>/dev/null ; then live_media_path_="live-media-path=$(awk -F live-media-path= '{print $2}' /proc/cmdline | awk '{print $1}')" fi -if [ ! -d /live/image/boot ] ; then +if [ ! -d /live/image/boot ] && [ ! -d /lib/live/mount/medium/boot ] ; then live_media_path_="live-media-path=/" fi @@ -100,7 +100,17 @@ ret_=$? ## create pxelinux config ### DEST_DIR=$(mktemp -d) -if [ -d /live/image/boot ] ; then +if [ -d /lib/live/mount/medium/boot ] ; then # since around December 2012 + grml2usb --bootloader-only \ + --bootoptions="$pxe_def_boot_args_ $BOOT_ARGS_" \ + --remove-bootoption=nodhcp \ + /lib/live/mount/medium "$DEST_DIR" + + mv "$DEST_DIR"/boot/syslinux/* "$TFTPD_DATA_DIR_/" + rmdir "$DEST_DIR"/boot/syslinux + + mv "$DEST_DIR"/boot/ "$TFTPD_DATA_DIR_" +elif [ -d /live/image/boot ] ; then # until around December 2012 grml2usb --bootloader-only \ --bootoptions="$pxe_def_boot_args_ $BOOT_ARGS_" \ --remove-bootoption=nodhcp \