[syslinux-iso] make archiso-pxe-server compatible with archiso2dual scheme

Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
Gerardo Exequiel Pozzi 2010-03-18 12:54:20 -03:00
parent 7483cffb30
commit 6660e0fc41

View File

@ -32,10 +32,15 @@ usage()
copy_files() copy_files()
{ {
if [ ! -d $TFTPBOOT ]; then if [ ! -d $TFTPBOOT ]; then
mkdir -p $TFTPBOOT/boot mkdir -p $TFTPBOOT/boot/i686
mkdir -p $TFTPBOOT/boot/x86_64
mkdir -p $TFTPBOOT/pxelinux.cfg mkdir -p $TFTPBOOT/pxelinux.cfg
cp $BOOT/vmlinuz26 $TFTPBOOT/boot [ -f $BOOT/vmlinuz26 ] && cp $BOOT/vmlinuz26 $TFTPBOOT/boot
cp $BOOT/archiso.img $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/memtest $TFTPBOOT/boot
cp $BOOT/x86test $TFTPBOOT/boot cp $BOOT/x86test $TFTPBOOT/boot
cp $BOOT/splash.png $TFTPBOOT/boot cp $BOOT/splash.png $TFTPBOOT/boot