]> xenbits.xensource.com Git - unikraft/libs/lua.git/commit
patches: Remove outdated patch
authorStefan Jumarea <stefanjumarea02@gmail.com>
Mon, 17 Jul 2023 07:28:48 +0000 (10:28 +0300)
committerUnikraft <monkey@unikraft.io>
Tue, 25 Jul 2023 06:55:33 +0000 (06:55 +0000)
commitb0524edf2fa7b95c0514b692c3c99a7dedbf41bf
tree7172adeb08add2834d09e3f62e5932c5c31fc0fc
parenta81d7bc47e9d09594f727dd26195ff1bfd82e111
patches: Remove outdated patch

The patch was:
* Replacing the lua `main` symbol with `lua_main`.
* Removing checking that the given argument was a script, instead
  checking if there is an initrd filesystem present and trying to
  execute it.

The `main` symbol is already replaced in the preprocessing stage by
adding `-Dmain=lua_main` in the `Makefile.uk` flags, so renaming it is
not needed.

Trying to execute the initrd without properly extracting it will
obviously fail, since `lua` will not be able to read the script properly.
This will result in an `malformed number near '0707010..'` error.

The check for initrd is not needed at all, since the fs driver is
transparent for the application, and the script can be accessed as an
usual file, regardless of the fs driver (initrd, 9pfs, etc.).

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #8
patches/0001-lua-main-add-initrd.patch [deleted file]