-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Malformed section header when creating UKI with dracut and upstream systemd-stub #2284
Comments
As suggested by systemd folks in systemd/systemd#26915 (comment), copying the above issue here |
Possible fix: |
You need latest dracut master for this to work. See #2275. You can verify by running |
Doesn't complain, but you're right, with upstream dracut it works fine. Closing this issue, thanks! |
* UEFI creation didn't handle the ImageBase data for the PE file generation. Create an UKI thanks a stub file with a non zero BaseImage logs some warning ans generate a bad file offset management. The efi becomes unloadable. * This commit parse the PE file header, get the data and apply the ImageBase on the objcopy command. Fixes dracutdevs#2284 Signed-off-by: Valentin Lefebvre <valentin.lefebvre@suse.com>
* UEFI creation didn't handle the ImageBase data for the PE file generation. Create an UKI thanks a stub file with a non zero BaseImage logs some warning ans generate a bad file offset management. The efi becomes unloadable. * This commit parse the PE file header, get the data and apply the ImageBase on the objcopy command. Fixes dracutdevs#2284 Signed-off-by: Valentin Lefebvre <valentin.lefebvre@suse.com>
* UEFI creation didn't handle the ImageBase data for the PE file generation. Create an UKI thanks a stub file with a non zero BaseImage logs some warning ans generate a bad file offset management. The efi becomes unloadable. * This commit parse the PE file header, get the data and apply the ImageBase on the objcopy command. Fixes dracutdevs#2284 Signed-off-by: Valentin Lefebvre <valentin.lefebvre@suse.com>
* UEFI creation didn't handle the ImageBase data for the PE file generation. Create an UKI thanks a stub file with a non zero BaseImage logs some warning ans generate a bad file offset management. The efi becomes unloadable. * This commit parse the PE file header, get the data and apply the ImageBase on the objcopy command. Fixes dracutdevs#2284 Signed-off-by: Valentin Lefebvre <valentin.lefebvre@suse.com>
* UEFI creation didn't handle the ImageBase data for the PE file generation. Create an UKI thanks a stub file with a non zero BaseImage logs some warning ans generate a bad file offset management. The efi becomes unloadable. * This commit parse the PE file header, get the data and apply the ImageBase on the objcopy command. Fixes #2284 Signed-off-by: Valentin Lefebvre <valentin.lefebvre@suse.com>
* UEFI creation didn't handle the ImageBase data for the PE file generation. Create an UKI thanks a stub file with a non zero BaseImage logs some warning ans generate a bad file offset management. The efi becomes unloadable. * This commit parse the PE file header, get the data and apply the ImageBase on the objcopy command. Fixes dracutdevs#2284 Signed-off-by: Valentin Lefebvre <valentin.lefebvre@suse.com>
Describe the bug
When creating an UKI with manually compiled systemd-stub (checked out at master/HEAD) and rebooting, system should boot using the given UKI.
Then efibootmgr shows:
NOTE: it works when systemd is checked out at v252
Instead I see:
Then efibootmgr shows:
Distribution used
RHEL 9.3
Dracut version
dracut 057-21.git20230214.el9
Init system
Which init system is being used?
To Reproduce
note: when using ukify instead of dracut, systemd-stub works regardless of the version it is checked out.
Expected behavior
See bug description
The text was updated successfully, but these errors were encountered: