summaryrefslogtreecommitdiff
path: root/configs/syslinux-iso/overlay/arch/archiso-pxe-server
diff options
context:
space:
mode:
Diffstat (limited to 'configs/syslinux-iso/overlay/arch/archiso-pxe-server')
-rwxr-xr-xconfigs/syslinux-iso/overlay/arch/archiso-pxe-server11
1 files changed, 8 insertions, 3 deletions
diff --git a/configs/syslinux-iso/overlay/arch/archiso-pxe-server b/configs/syslinux-iso/overlay/arch/archiso-pxe-server
index a4f0fd4..8743ad0 100755
--- a/configs/syslinux-iso/overlay/arch/archiso-pxe-server
+++ b/configs/syslinux-iso/overlay/arch/archiso-pxe-server
@@ -32,10 +32,15 @@ usage()
copy_files()
{
if [ ! -d $TFTPBOOT ]; then
- mkdir -p $TFTPBOOT/boot
+ mkdir -p $TFTPBOOT/boot/i686
+ mkdir -p $TFTPBOOT/boot/x86_64
mkdir -p $TFTPBOOT/pxelinux.cfg
- cp $BOOT/vmlinuz26 $TFTPBOOT/boot
- cp $BOOT/archiso.img $TFTPBOOT/boot
+ [ -f $BOOT/vmlinuz26 ] && cp $BOOT/vmlinuz26 $TFTPBOOT/boot
+ [ -f $BOOT/archiso.img ] && cp $BOOT/archiso.img $TFTPBOOT/boot
+ [ -f $BOOT/i686/vmlinuz26 ] && cp $BOOT/i686/vmlinuz26 $TFTPBOOT/boot/i686
+ [ -f $BOOT/i686/archiso.img ] && cp $BOOT/i686/archiso.img $TFTPBOOT/boot/i686
+ [ -f $BOOT/x86_64/vmlinuz26 ] && cp $BOOT/x86_64/vmlinuz26 $TFTPBOOT/boot/x86_64
+ [ -f $BOOT/x86_64/archiso.img ] && cp $BOOT/x86_64/archiso.img $TFTPBOOT/boot/x86_64
cp $BOOT/memtest $TFTPBOOT/boot
cp $BOOT/x86test $TFTPBOOT/boot
cp $BOOT/splash.png $TFTPBOOT/boot