mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
core: 修复特殊情况下无法生成 grub image
原因:当前目录不可写
This commit is contained in:
parent
2091854185
commit
99c899beda
@ -1018,8 +1018,8 @@ install_grub_win() {
|
|||||||
find /tmp/win32-loader -name 'g2ldr.mbr' -exec cp {} /cygdrive/$c/ \;
|
find /tmp/win32-loader -name 'g2ldr.mbr' -exec cp {} /cygdrive/$c/ \;
|
||||||
|
|
||||||
# g2ldr
|
# g2ldr
|
||||||
$grub-mkimage -p "$prefix" -O i386-pc -o core.img $grub_modules
|
$grub-mkimage -p "$prefix" -O i386-pc -o "$(cygpath -w $grub_dir/core.img)" $grub_modules
|
||||||
cat $grub_dir/i386-pc/lnxboot.img core.img >/cygdrive/$c/g2ldr
|
cat $grub_dir/i386-pc/lnxboot.img $grub_dir/core.img >/cygdrive/$c/g2ldr
|
||||||
|
|
||||||
# 添加引导
|
# 添加引导
|
||||||
# 脚本可能不是首次运行,所以先删除原来的
|
# 脚本可能不是首次运行,所以先删除原来的
|
||||||
|
Loading…
x
Reference in New Issue
Block a user