From 671d08c50222dd133e33aad8a011c34641af49a4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 14 Nov 2023 13:51:37 +0100 Subject: [PATCH] make memdisk work with bios cmdpath --- build.sh | 11 ++++------- grub.cfg.sh | 1 + readme.md | 5 +++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index eb84657..2a125a4 100644 --- a/build.sh +++ b/build.sh @@ -108,19 +108,16 @@ echo -n " → ${MEMDISK_FILE} " echo -n "\ -# header +echo \"prefix | \${prefix}\" +search --no-floppy --set root --fs-uuid '${ESP}' +prefix=\"(\${root})/boot/grub\" +echo \"prefix | \${prefix}\" " > "${MEMDISK_FILE}" echo -n " ↙ ${GRUB_SHIGNED} ↘ ${MEMDISK_FILE} " cat "${GRUB_SHIGNED}" >> "${MEMDISK_FILE}" -echo -n " -→ ${MEMDISK_FILE} -" -echo -n "\ -# footer -" >> "${MEMDISK_FILE}" echo -n " ↙ ${MEMDISK_ROOT} diff --git a/grub.cfg.sh b/grub.cfg.sh index 5dba739..473493e 100644 --- a/grub.cfg.sh +++ b/grub.cfg.sh @@ -74,6 +74,7 @@ function grub_list_xtra { } function grub_main { + echo '---' ls grub_list_const grub_split diff --git a/readme.md b/readme.md index 8d28d4c..9d60274 100644 --- a/readme.md +++ b/readme.md @@ -58,13 +58,14 @@ Build an ESP File System including: ## Tasks -* build.sh +* bash * args/pgp * args/esp & lsgm/cp * mimic grubx64.efi.signed * efi * bios -* grub.cfg + * --prefix '(memdisk)' +* live * check squashfs option * python