the diff command shows the difference between the original file and the modified version. you can use patch utility to add the diff output to the file.
you can manually add PVE::INotify::inotify_close(); to...
@seubix , maybe you can detect which flash is in your device with
flashrom -p internal
or
flashrom -p internal:boardenable=force
and then use the corresponding command for flashing
not sure if this helps - and use on your own risk.
i found a fix for this (one liner).
is anybody willing to test it before i submit this to pve-devel ?
actually this error happens rarely on the systems where i can add fixes for testing, so i'd be happy if i can get help testing