-
Notifications
You must be signed in to change notification settings - Fork 86
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
Support configurable PREFIX #15
Comments
@michaelforney : I'm wondering if this functionality is known to work at this time. I see an entry for "prefix" in the config.lua file but it seems to be framed as an "install" prefix, rather than a base prefix from which the packages look for any related dependencies and files. Is there a means to rebuild the system in a way that all binaries, configuration files, and any other package specific data is fully hosted under a user-defined path? In that case I'd imagine that the packages built would need to know to add this prefix in front of the usual paths they're used to using, so that Oasis prefixed can fully co-exist alongside another distribution. For example, instead of a package referencing /etc/somewhere, it would have to reference /opt/oasis/etc/somewhere (if /opt/oasis is the user's choice for prefix). Perhaps it's available but I'm not aware of a step-by-step guide. I've been following the (re)build process given in the README that's packaged with the latest qemu image file, but since I less understand the build tool I'm not sure if there's a separate "make install" counterpart command involving git or samu. |
see oasislinux#15: Support configurable PREFIX
from @michaelforney: > It looks like all of those paths (`GIT_*_PATH`, `DEFAULT_GIT_TEMPLATE_DIR`) > are used with the `system_path()` function, which prefixes them > with `system_prefix()`. > > `system_prefix()` works in one of two ways, depending on whether > RUNTIME_PREFIX is defined. If it is, it looks of the executable > path using `/proc/self/exe`, finding the prefix dynamically similar > to a relocatable gcc toolchain, otherwise it uses > `FALLBACK_RUNTIME_PREFIX`. see oasislinux#15: Support configurable PREFIX
see #15: Support configurable PREFIX
This will allow users to install oasis alongside their existing operating system by setting
config.prefix=os.getenv('HOME')..'/oasis'
.The text was updated successfully, but these errors were encountered: