Skip to content
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

WIP: cli: add --no-safeguards #38

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Snaipe
Copy link
Member

@Snaipe Snaipe commented Oct 21, 2020

This commit adds a new option to allow bst to change existing
namespaces. This in particularly useful to perform any complex setup of
a spacetime via invoking bst multiple times. For instance:

$ bst --persist=./ns --share pid --mount tmp,/some/root/tmp,tmpfs true
$ bst --no-safeguards --share=./ns --share pid cp -r /files /some/root/tmp
$ bst --no-safeguards --share=./ns --root /some/root /bin/sh

... is a viable alternative to using a setup script if performance is
critical.


This is a work in progress, and should not be merged yet. There are issues with the way that NIC creation is handled with no safeguards, due to the assumptions that bst makes on the way that interfaces are created & renamed.

This commit adds a new option to allow bst to change existing
namespaces. This in particularly useful to perform any complex setup of
a spacetime via invoking bst multiple times. For instance:

    $ bst --persist=./ns --share pid --mount tmp,/some/root/tmp,tmpfs true
    $ bst --no-safeguards --share=./ns --share pid cp -r /files /some/root/tmp
    $ bst --no-safeguards --share=./ns --root /some/root /bin/sh

... is a viable alternative to using a setup script if performance is
critical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant