Your best option here is to file a bug report with details about what happened, so the package maintainers can fix the problem at the root.
The only thing you can do on your side is to check if maybe the package lacks some “requires” dependency on a tool that is used (e.g. here “lua”) and install it manually so it’s available in the post-trans script.
You can have a look at the scripts with
$ rpm -q --scripts systemd
for the installed version, or download the new version and investigate it directly:
$ zypper download systemd
(it will tell you the path where it was downloaded to)
No, they do not use lua at least directly. lua is not installed, There are several lua versions available and a lot of additional lua* packages. What to install?
I just checked the pre-/post-transaction scripts on systemd from my system and in the .spec file for openSUSE:Factory in OBS and also the RPM macros at /usr/lib/rpm/macros.d/macros.systemd, and I couldn’t find any trace of lua.
The error message may be bogus.
As for what to install to get lua, I guess that would be lua53. It’s just a tiny 43.1 kB (!) package, and it doesn’t drag any depenencies in. It might be worth a try, but I am no longer sure if that would help.