X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2Fgrub-pxelinux_config;fp=templates%2Fgrub-pxelinux_config;h=ba1f2f4d39be1be6fd51c89469eecf2b80000164;hb=f47343bac2f390cc5136130a310b952882621adf;hp=694293edd45be77b8e4d6088046755e6be178ba2;hpb=876ee70ea224ce76b0a0a24d223c2cdb490d221c;p=grml-terminalserver.git diff --git a/templates/grub-pxelinux_config b/templates/grub-pxelinux_config index 694293e..ba1f2f4 100644 --- a/templates/grub-pxelinux_config +++ b/templates/grub-pxelinux_config @@ -94,9 +94,10 @@ fi # Copy initrd.img and vmlinuz from all directories which name begins # with grml, e.g. grml32full and grml64full # This way we can boot multiple ISOs -for filename in $(ls -d ${MULTIBOOT_PATH_}/grml*); do - cp -r ${filename} ${TFTPD_DATA_DIR_}/boot/ -done +for filename in "${MULTIBOOT_PATH_}"/grml* ; do + [ -d "$filename" ] || continue + cp -r "${filename}" "${TFTPD_DATA_DIR_}/boot/" +done config_files_=$(find "$TFTPD_DATA_DIR_/" -name "*.cfg" -type f)