From 760a57024b58249f79019499feaeef511e6010df Mon Sep 17 00:00:00 2001 From: lgromero Date: Tue, 24 Jun 2025 11:07:32 +0200 Subject: [PATCH] refs #2218 checks if a label exists to assign root when appropriate --- tftpboot/menu.lst/templateDisk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tftpboot/menu.lst/templateDisk b/tftpboot/menu.lst/templateDisk index 72a02e9..5639364 100755 --- a/tftpboot/menu.lst/templateDisk +++ b/tftpboot/menu.lst/templateDisk @@ -1,3 +1,5 @@ -search --file --set root /EFI/Part-__DISK__-__PART__/Boot/ogloader.efi -chainloader /EFI/Part-__DISK__-__PART__/Boot/ogloader.efi +if ! search --file --set root /Part-__DISK__-__PART__; then + search --file --set root /EFI/Part-__DISK__-__PART__/Boot/ogloader.efi +fi +chainloader (hd0,gpt1)/EFI/Part-__DISK__-__PART__/Boot/ogloader.efi boot \ No newline at end of file