-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
patches: Remove outdated patch #8
patches: Remove outdated patch #8
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @StefanJum , this works, in conjunction to PR #7. Once @eduardvintila does his review, I will approve it to have it merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, @StefanJum, thank you. You know what's greater? This typo from the last phrase of your commit message: regardell of the fs dreiver
😁
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>
ce6c501
to
4eb4e7d
Compare
Wow that was a bad one, fixed 😆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good now 😬 , thanks!
Reviewed-by: Eduard Vintilă eduard.vintila47@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-by: Razvan Deaconescu razvand@unikraft.io
The patch was:
main
symbol withlua_main
.checking if there is an initrd filesystem present and trying to
execute it.
The
main
symbol is already replaced in the preprocessing stage byadding
-Dmain=lua_main
in theMakefile.uk
flags, so renaming it isnot 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, regardell of the fs dreiver (initrd, 9pfs, etc.).
app-lua
can be run with a script as an argument with one of the following:Signed-off-by: Stefan Jumarea stefanjumarea02@gmail.com