From c16806c6af30c16a2ec2b0a2a5b7387a0beacac9 Mon Sep 17 00:00:00 2001 From: longpanda Date: Thu, 22 Oct 2026 08:57:28 +0800 Subject: [PATCH] Update the grub build script --- GRUB2/MOD_SRC/grub-2.04/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GRUB2/MOD_SRC/grub-2.04/install.sh b/GRUB2/MOD_SRC/grub-2.04/install.sh index 45c7cb7c..ad5c3bd5 100644 --- a/GRUB2/MOD_SRC/grub-2.04/install.sh +++ b/GRUB2/MOD_SRC/grub-2.04/install.sh @@ -123,7 +123,9 @@ else rm -f $VT_DIR/GRUB2/NBP/core.0 cp -a $VT_DIR/GRUB2/PXE/grub2/i386-pc/core.0 $VT_DIR/GRUB2/NBP/core.0 || exit 1 - rm -f $VT_DIR/INSTALL/grub/i386-pc/boot.img + rm -rf $VT_DIR/INSTALL/grub/i386-pc + mkdir -p $VT_DIR/INSTALL/grub/i386-pc + cp -a $VT_DIR/GRUB2/INSTALL/lib/grub/i386-pc/boot.img $VT_DIR/INSTALL/grub/i386-pc/boot.img || exit 1 #copy other modules