Skip to content

Commit

Permalink
patches: Remove outdated patch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
StefanJum committed Jul 18, 2023
1 parent a81d7bc commit 4eb4e7d
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions patches/0001-lua-main-add-initrd.patch

This file was deleted.

0 comments on commit 4eb4e7d

Please sign in to comment.