24.02 - moved memtest URL to main script, added GRUB modules for Debian 12 compatbility.

This commit is contained in:
Maciej Prill 2024-02-12 15:29:21 +01:00
parent e0528a7a8e
commit 0c0b318a47

View File

@ -3,7 +3,8 @@
VERSION=$1
ARCH=$2
OUTPUT=$3
NOFIRMWARE=$4
MEMTEST_URL=$4
NOFIRMWARE=$5
TEMP_DIR=$(mktemp -d)
SCRIPTDIR="$(dirname "$(realpath "$0")")"
@ -35,8 +36,8 @@ echo
TEMP_DIR_MEMTEST=$(mktemp -d)
wget -q https://memtest.org/download/v6.20/mt86plus_6.20.binaries.zip -P ${TEMP_DIR_MEMTEST}
unzip -q ${TEMP_DIR_MEMTEST}/mt86plus_6.20.binaries.zip -d ${TEMP_DIR_MEMTEST}
wget -q ${MEMTEST_URL} -O ${TEMP_DIR_MEMTEST}/memtest.zip
unzip -q ${TEMP_DIR_MEMTEST}/memtest.zip -d ${TEMP_DIR_MEMTEST}
cp ${TEMP_DIR_MEMTEST}/memtest64.bin "$TEMP_DIR/memtest/memtest.bin"
cp ${TEMP_DIR_MEMTEST}/memtest64.efi "$TEMP_DIR/memtest/memtest.efi"
rm -r "${TEMP_DIR_MEMTEST}"
@ -57,11 +58,20 @@ grub-mkimage -O i386-pc -p /boot/bios/ -o ${TEMP_DIR_GRUB}/core.img iso9660 bios
#cp -r /usr/lib/grub/i386-pc/* $TEMP_DIR/boot/bios/i386-pc
#rm $TEMP_DIR/boot/bios/i386-pc/*.img
for module in normal boot extcmd crypto terminal gettext bufio \
linux video relocator mmap vbe video_fb \
linux16 datetime net priority_queue \
gfxterm font gfxmenu trig bitmap_scale bitmap video_colors \
png verifiers; do
for module in bitmap bitmap_scale boot bufio \
datetime \
crypto \
extcmd \
font \
gettext gfxmenu gfxterm \
linux linux16 \
mmap \
net normal \
png priority_queue \
relocator \
terminal \
trig \
vbe verifiers video video_colors video_fb; do
cp /usr/lib/grub/i386-pc/${module}.mod $TEMP_DIR/boot/bios/i386-pc
done;