fix broken repo

This commit is contained in:
2023-06-14 22:12:45 +02:00
commit 6eab425ace
33 changed files with 1003 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
menuentry "Run __DISTRO__ with persistence" {
linux /vmlinuz perch
initrd /initrd.img
}
menuentry "Run __DISTRO__ from RAM without persistence" {
linux /vmlinuz toram
initrd /initrd.img
}
menuentry "Run __DISTRO__ with debug" {
linux /vmlinuz debug
initrd /initrd.img
}
menuentry "Run __DISTRO__ with debug and first stage shell" {
linux /vmlinuz debug shell
initrd /initrd.img
}
+47
View File
@@ -0,0 +1,47 @@
@echo off
cls
echo ===============================================================================
echo Setting your drive to boot
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 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
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
\syslinux.exe -maf %DISK%:
goto setupDone
:setup95
\syslinux.com -maf %DISK%:
:setupDone
echo Installation finished.
goto pauseit
:readOnly
echo You're starting boot 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
+40
View File
@@ -0,0 +1,40 @@
#!/bin/sh
# Setup booting from disk (USB or harddrive)
# Requires: fdisk, df, tail, tr, cut, dd, sed
# change working directory to dir from which we are started
CWD="$(pwd)"
BOOT="$(dirname "$0")"
cd "$BOOT"
# find out device and mountpoint
PART="$(df . | tail -n 1 | tr -s " " | cut -d " " -f 1)"
DEV="$(echo "$PART" | sed -r "s:[0-9]+\$::" | sed -r "s:([0-9])[a-z]+\$:\\1:i")"
./extlinux.exe --install "$BOOT"
if [ $? -ne 0 ]; then
echo "Error installing boot loader."
echo "Read the errors above and press enter to exit..."
read junk
exit 1
fi
if [ "$DEV" != "$PART" ]; then
# Setup MBR on the first block
dd bs=440 count=1 conv=notrunc if="$BOOT/mbr.bin" of="$DEV" 2>/dev/null
# Toggle a bootable flag
PART="$(echo "$PART" | sed -r "s:.*[^0-9]::")"
(
fdisk -l "$DEV" | fgrep "*" | fgrep "$DEV" | cut -d " " -f 1 \
| sed -r "s:.*[^0-9]::" | xargs -I '{}' echo -ne "a\n{}\n"
echo a
echo $PART
echo w
) | fdisk $DEV >/dev/null 2>&1
fi
echo "Boot installation finished."
cd "$CWD"
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
View File
Binary file not shown.
+25
View File
@@ -0,0 +1,25 @@
UI vesamenu.c32
MENU BACKGROUND logo.png
TIMEOUT 140
MENU CLEAR
LABEL default
MENU LABEL Run __DISTRO__ with persistence
KERNEL /vmlinuz
APPEND initrd=/initrd.img perch
LABEL toram
MENU LABEL Run __DISTRO__ from RAM without persistence
KERNEL /vmlinuz
APPEND initrd=/initrd.img toram
LABEL debug
MENU LABEL Run __DISTRO__ with debug
KERNEL /vmlinuz
APPEND initrd=/initrd.img debug
LABEL debugshell
MENU LABEL Run __DISTRO__ with debug and first stage shell
KERNEL /vmlinuz
APPEND initrd=/initrd.img debug shell
Binary file not shown.
Binary file not shown.
Binary file not shown.