-
-
Notifications
You must be signed in to change notification settings - Fork 606
Open
Description
Now that OSv is better at running PIEs, and Ubuntu (if I understand correctly) packages executables as PIEs by default, it would be really cool if we could create OSv images by simply giving a list of Ubuntu packages to include in the image. We could do this in the context of the Capstan tool, but I'd really like to see it in our scripts/build and apps submodule as well, as a simple option for adding new applications or libraries to apps/.
I suggest we should create a common script which:
- Takes a list of Ubuntu packages. Fetches the latest one for each if not previously fetched (note that the build machine may not be Ubuntu at all) and opens them into a directory.
- The script could also optionally recursively look for dependencies of the given packages, although we will need to also blacklist some packages (e.g., some package may depend on bash because it includes a shell script - but in OSv, we will not want to include the shell, nor use the shell script).
- Take various options to transform the resulting directory - e.g., remove unnecessary files.
- Also take as an option the command line.
Finally we could have in apps/something nothing more than a Makefile with a "module" target which just runs this script (the Makefile and module target is what scripts/build currently looks for).
Metadata
Metadata
Assignees
Labels
No labels