From 99c899bedad80ac648e6c9e1191abe9565c08b69 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 13 Dec 2023 22:29:17 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E6=83=85=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95=E7=94=9F=E6=88=90?= =?UTF-8?q?=20grub=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原因:当前目录不可写 --- reinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 02bd956..304a9ba 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -1018,8 +1018,8 @@ install_grub_win() { find /tmp/win32-loader -name 'g2ldr.mbr' -exec cp {} /cygdrive/$c/ \; # g2ldr - $grub-mkimage -p "$prefix" -O i386-pc -o core.img $grub_modules - cat $grub_dir/i386-pc/lnxboot.img core.img >/cygdrive/$c/g2ldr + $grub-mkimage -p "$prefix" -O i386-pc -o "$(cygpath -w $grub_dir/core.img)" $grub_modules + cat $grub_dir/i386-pc/lnxboot.img $grub_dir/core.img >/cygdrive/$c/g2ldr # 添加引导 # 脚本可能不是首次运行,所以先删除原来的