Comments (4)
thank you for quick answer and help! can you please help to get wimboot.mod for UEFI for x86_64-efi and i386-efi please?
https://github.com/a1ive/grub/releases/tag/latest
from grub.
It‘s a bug introduced in wimboot v2.7.5.
See: ipxe/wimboot#40
Applying this patch and compiling, the problem should be fixed:
wimboot.patch
diff --git a/grub-core/map/lib/wim.c b/grub-core/map/lib/wim.c
index b61be90..ead6f91 100644
--- a/grub-core/map/lib/wim.c
+++ b/grub-core/map/lib/wim.c
@@ -296,7 +296,8 @@ int wim_count ( struct vfat_file *file, struct wim_header *header,
int rc;
/* Count metadata entries */
- for ( offset = 0 ; ( offset + sizeof ( entry ) ) <= header->lookup.len ;
+ for ( offset = 0, *count = 0 ;
+ ( offset + sizeof ( entry ) ) <= header->lookup.len ;
offset += sizeof ( entry ) ) {
/* Read entry */
diff --git a/grub-core/map/lib/wimpatch.c b/grub-core/map/lib/wimpatch.c
index eb64840..cfd9528 100644
--- a/grub-core/map/lib/wimpatch.c
+++ b/grub-core/map/lib/wimpatch.c
@@ -688,6 +688,10 @@ static int wim_construct_patch ( struct vfat_file *file,
&patch->boot ) ) != 0 )
return rc;
+ /* Update boot image metadata in patched header, if applicable */
+ if ( boot_index )
+ memcpy ( boot, &patch->boot, sizeof ( *boot ) );
+
/* Record original boot index */
patch->boot_index = patch->header.boot_index;
As I am no longer maintaining this project, I will not update it to fix this bug.
from grub.
thank you for quick answer and help!
can you please help to get wimboot.mod for UEFI for x86_64-efi and i386-efi please?
from grub.
thank you very much, you are genius!
i've tested and it already working!!!
from grub.
Related Issues (20)
- 截屏模块 和 某些命令 的问题。 HOT 12
- Request: Disable menu 'c' and 'e' hotkeys HOT 6
- put nointegritychecks to OSLOADER HOT 1
- add an option to load bootvhd.dll (i386-pc/ntboot)
- Load SeaBIOS/TianoCore HOT 1
- Question: dd status=progress? HOT 8
- getkey key codes for Ctrl+Shift+F HOT 20
- 为什么ntboot不支持光盘? HOT 1
- Ignore floppies
- 在Ubuntu18.04 x86_64中编译aarch64 HOT 1
- menuentry --help-msg buggy HOT 10
- Query: Are variables in a theme .txt file supported? HOT 2
- NTBOOT 没有启动动画 HOT 8
- wimboot BIOS fails for WinPE WIMs larger than 890MB HOT 10
- how to build HOT 1
- set fallback=1 it not work? HOT 1
- GRUB does not create menu entries
- Request adding support for zstd compressed squashfs files.
- What changes can be upstreamed? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grub.