osresearch / safeboot-loader

Linux kernel module to use UEFI Block IO Protocol devices. Probably not a good idea.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chainloader needs to pass boot device to LoadImage()

osresearch opened this issue · comments

The Windows bootloader uses the devicepath argument to LoadImage() to determine which device it is booting from. We need to ensure that it receives the correct one.

Fixed with 6137896 and 8f83911

It is currently passed as an int, perhaps having an ioctl or sysfs file to retrieve it would be better, which chainload could query based on the exe to be run.

sysfs files created: 082a746

and used by chainload: 364e377