]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut.sh): handle imagebase for uefi
authorkeentux <valentin.lefebvre@suse.com>
Wed, 22 Mar 2023 10:40:39 +0000 (10:40 +0000)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Tue, 9 May 2023 02:04:09 +0000 (22:04 -0400)
commit6178a9d83ffad67fa371cef2ff3f5bbb337bc8b7
treed83e9fcb83c47f7a2b24aa8c4eebaeadc2db1f7f
parent67591e8855006eb02aa0ffab7349ab770e471473
fix(dracut.sh): handle imagebase for uefi

* 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>
dracut-functions.sh
dracut.sh