From e6914390c45ffe6efebf63e2c9a59c7da9b00e1e Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Tue, 7 Nov 2023 16:26:10 +1100 Subject: [PATCH] Set up for testing lua on uefi --- mkit.sh | 2 ++ muffin.lua | 3 +++ syslinux-uefi.cfg | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/mkit.sh b/mkit.sh index eed589a..8ebc8e7 100755 --- a/mkit.sh +++ b/mkit.sh @@ -192,6 +192,8 @@ mcopy $IMG kernel/usr/lib/SYSLINUX.EFI/efi64/syslinux.efi \ mcopy $IMG \ kernel/usr/lib/syslinux/modules/efi64/* ::/EFI/BOOT mcopy $IMG syslinux-uefi.cfg ::/EFI/BOOT/syslinux.cfg +## Add lua boot script +mcopy $IMG muffin.lua ::/EFI/BOOT/muffin.lua case "$MBR" in dos) MBRBIN=mbr.bin ;; diff --git a/muffin.lua b/muffin.lua index b8772b1..ed79f3a 100644 --- a/muffin.lua +++ b/muffin.lua @@ -11,3 +11,6 @@ end -- vesa.load_background "PXE-RRZE_small.jpg" sl.sleep(3) + +-- Return to vesamenu +sl.run_command("vesamenu.") diff --git a/syslinux-uefi.cfg b/syslinux-uefi.cfg index 57de42a..a54df20 100644 --- a/syslinux-uefi.cfg +++ b/syslinux-uefi.cfg @@ -17,3 +17,7 @@ label linux kernel vmlinuz sysappend 0x78074 append initrd=initrd.gz init=/init root=/dev/sda1 + +label lua test + kernel lua.c32 + append muffin.lua -- 2.39.2