diff --git a/bootfiles/bootinst.bat b/bootfiles/bootinst.bat new file mode 100644 index 0000000..68e8dcd --- /dev/null +++ b/bootfiles/bootinst.bat @@ -0,0 +1,55 @@ +@echo off +cls + +echo =============================================================================== +echo. +echo ________.__ +echo / ____/^| ^| _____ ___ ___ +echo \____ \ ^| ^| \__ \ \ \/ / +echo / \^| ^|__/ __ \_^> ^< +echo /______ /^|____(____ /__/\_ \ +echo \/ \/ \/ +echo. +echo =============================================================================== +echo. + +set DISK=none +set BOOTFLAG=boot666s.tmp + +echo This file is used to determine current drive letter. It should be deleted. >\%BOOTFLAG% +if not exist \%BOOTFLAG% goto readOnly + +echo.|set /p=wait please +for %%d in ( C D E F G H I J K L M N O P Q R S T U V W X Y Z ) do echo.|set /p=. & if exist %%d:\%BOOTFLAG% set DISK=%%d +del \%BOOTFLAG% +if %DISK% == none goto DiskNotFound + +echo. +echo Setting up boot record for %DISK%:, wait please... + +if %OS% == Windows_NT goto setupNT +goto setup95 + +:setupNT +\boot\syslinux.exe -maf -d /boot/syslinux %DISK%: +goto setupDone + +:setup95 +\boot\syslinux.com -maf -d /boot/syslinux %DISK%: + +:setupDone +echo Installation finished. +goto pauseit + +:readOnly +echo You're starting Slax installer from a read-only media, this will not work. +goto pauseit + +:DiskNotFound +echo Error: can't find out current drive letter + +:pauseit +echo Press any key to exit... +pause > nul + +:end diff --git a/bootfiles/syslinux.com b/bootfiles/syslinux.com new file mode 100644 index 0000000..49f62ef Binary files /dev/null and b/bootfiles/syslinux.com differ diff --git a/bootfiles/syslinux.exe b/bootfiles/syslinux.exe new file mode 100644 index 0000000..9c82cf9 Binary files /dev/null and b/bootfiles/syslinux.exe differ diff --git a/bootfiles/syslinux64.exe b/bootfiles/syslinux64.exe new file mode 100644 index 0000000..3f34a9d Binary files /dev/null and b/bootfiles/syslinux64.exe differ diff --git a/bootfiles/vesamenu.c32 b/bootfiles/vesamenu.c32 old mode 100755 new mode 100644 diff --git a/build b/build index 572387f..7daf077 100755 --- a/build +++ b/build @@ -28,11 +28,15 @@ cd .. rm -Rf "$LIVEKITDATA" BOOT="$LIVEKITDATA"/"$LIVEKITNAME"/boot mkdir -p "$BOOT" +mv "$INITRAMFS" $BOOT/initrfs.img cp bootfiles/isolinux.bin $BOOT cp bootfiles/vesamenu.c32 $BOOT cp bootfiles/bootlogo.png $BOOT -mv "$INITRAMFS" $BOOT/initrfs.img +cp bootfiles/syslinux.exe $BOOT +cp bootfiles/syslinux64.exe $BOOT +cp bootfiles/syslinux.com $BOOT cat bootfiles/isolinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/isolinux.cfg +cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat cp /boot/vmlinuz $BOOT/ # create compressed bundles