Merge 1ec415e852 into 5f0ccd3362
commit
de512ba3c6
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec /bin/bash "$(dirname "$0")"/bootinst.sh
|
exec /bin/bash "$(dirname "$0")"/bootinst.sh
|
||||||
exec /bin/sh "$(dirname "$0")"/bootinst.sh
|
exec /bin/sh "$(dirname "$0")"/bootinst.sh
|
||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
COLOR 2F
|
COLOR 2F
|
||||||
|
|
@ -54,14 +54,19 @@ goto setup95
|
||||||
|
|
||||||
:setupNT
|
:setupNT
|
||||||
\slax\boot\syslinux.exe -maf -d /slax/boot/ %DISK%:
|
\slax\boot\syslinux.exe -maf -d /slax/boot/ %DISK%:
|
||||||
if %ERRORLEVEL% == 0 goto setupDone
|
if %ERRORLEVEL% == 0 goto setupEFI
|
||||||
goto errorFound
|
goto errorFound
|
||||||
|
|
||||||
:setup95
|
:setup95
|
||||||
\slax\boot\syslinux.com -maf -d /slax/boot/ %DISK%:
|
\slax\boot\syslinux.com -maf -d /slax/boot/ %DISK%:
|
||||||
if %ERRORLEVEL% == 0 goto setupDone
|
if %ERRORLEVEL% == 0 goto setupEFI
|
||||||
goto errorFound
|
goto errorFound
|
||||||
|
|
||||||
|
:setupEFI
|
||||||
|
mkdir %DISK%:\EFI\Boot
|
||||||
|
copy \slax\boot\EFI\Boot\* %DISK%:\EFI\Boot
|
||||||
|
goto setupDone
|
||||||
|
|
||||||
:setupDone
|
:setupDone
|
||||||
echo Installation finished.
|
echo Installation finished.
|
||||||
goto pauseit
|
goto pauseit
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,10 @@ if [ "$DEV" != "$PART" ]; then
|
||||||
) | fdisk $DEV >/dev/null 2>&1
|
) | fdisk $DEV >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# UEFI boot loader
|
||||||
|
mkdir -p "$BOOT/../../EFI"
|
||||||
|
mv "EFI/Boot" "$BOOT/../../EFI/"
|
||||||
|
|
||||||
echo "Boot installation finished."
|
echo "Boot installation finished."
|
||||||
echo "Press Enter..."
|
echo "Press Enter..."
|
||||||
read junk
|
read junk
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -11,7 +11,7 @@ set BOOTFLAG=boot666s.tmp
|
||||||
echo This file is used to determine current drive letter. It should be deleted. >\%BOOTFLAG%
|
echo This file is used to determine current drive letter. It should be deleted. >\%BOOTFLAG%
|
||||||
if not exist \%BOOTFLAG% goto readOnly
|
if not exist \%BOOTFLAG% goto readOnly
|
||||||
|
|
||||||
echo wait please ...
|
echo 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 if exist %%d:\%BOOTFLAG% set DISK=%%d
|
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 if exist %%d:\%BOOTFLAG% set DISK=%%d
|
||||||
del \%BOOTFLAG%
|
del \%BOOTFLAG%
|
||||||
if %DISK% == none goto DiskNotFound
|
if %DISK% == none goto DiskNotFound
|
||||||
|
|
@ -24,10 +24,16 @@ goto setup95
|
||||||
|
|
||||||
:setupNT
|
:setupNT
|
||||||
\boot\syslinux.exe -maf -d /boot/ %DISK%:
|
\boot\syslinux.exe -maf -d /boot/ %DISK%:
|
||||||
goto setupDone
|
goto setupEFI
|
||||||
|
|
||||||
:setup95
|
:setup95
|
||||||
\boot\syslinux.com -maf -d /boot/ %DISK%:
|
\boot\syslinux.com -maf -d /boot/ %DISK%:
|
||||||
|
goto setupEFI
|
||||||
|
|
||||||
|
:setupEFI
|
||||||
|
mkdir %DISK%:\EFI\Boot
|
||||||
|
copy \boot\EFI\Boot\* %DISK%:\EFI\Boot
|
||||||
|
goto setupDone
|
||||||
|
|
||||||
:setupDone
|
:setupDone
|
||||||
echo Installation finished.
|
echo Installation finished.
|
||||||
|
|
|
||||||
|
|
@ -40,5 +40,9 @@ if [ "$DEV" != "$PART" ]; then
|
||||||
) | fdisk $DEV >/dev/null 2>&1
|
) | fdisk $DEV >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# UEFI boot loader
|
||||||
|
mkdir -p "$BOOT/../../EFI"
|
||||||
|
mv "EFI/Boot" "$BOOT/../../EFI/"
|
||||||
|
|
||||||
echo "Boot installation finished."
|
echo "Boot installation finished."
|
||||||
cd "$CWD"
|
cd "$CWD"
|
||||||
|
|
|
||||||
6
build
6
build
|
|
@ -49,11 +49,15 @@ if [ "$INITRAMFS" != "" ]; then
|
||||||
mv "$INITRAMFS" $BOOT/initrfs.img
|
mv "$INITRAMFS" $BOOT/initrfs.img
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp bootfiles/* $BOOT
|
cp -r bootfiles/* $BOOT
|
||||||
cat bootfiles/syslinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/syslinux.cfg
|
cat bootfiles/syslinux.cfg | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" > $BOOT/syslinux.cfg
|
||||||
cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat
|
cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:\\\\boot\\\\:\\\\$LIVEKITNAME\\\\boot\\\\:" > $BOOT/bootinst.bat
|
||||||
cp $VMLINUZ $BOOT/ || exit
|
cp $VMLINUZ $BOOT/ || exit
|
||||||
|
|
||||||
|
# UEFI booting
|
||||||
|
mv $BOOT/EFI/Boot/syslinux.efi $BOOT/EFI/Boot/bootx64.efi
|
||||||
|
cat $BOOT/syslinux.cfg | sed -r "s:/$LIVEKITNAME/boot/vesa::" > $BOOT/EFI/Boot/syslinux.cfg
|
||||||
|
|
||||||
# create compressed 01-core.sb
|
# create compressed 01-core.sb
|
||||||
COREFS=""
|
COREFS=""
|
||||||
for i in $MKMOD; do
|
for i in $MKMOD; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue