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

Create an invoke_in_rootfs function in command_lib #52

Closed
nishakm opened this issue May 18, 2018 · 0 comments
Closed

Create an invoke_in_rootfs function in command_lib #52

nishakm opened this issue May 18, 2018 · 0 comments
Assignees
Labels
assigned This issue has been assigned to someone who is actively working on it

Comments

@nishakm
Copy link
Contributor

nishakm commented May 18, 2018

Based on the work in #37, we should now be able to do the same operations as in 'invoke_in_container'
No 'override' should be necessary as there is only one location that the rootfs should exist and no running process to refer to.

Refer to #37 for more info.

@nishakm nishakm self-assigned this May 18, 2018
@nishakm nishakm added the assigned This issue has been assigned to someone who is actively working on it label May 18, 2018
rnjudge pushed a commit to rnjudge/tern that referenced this issue Jun 5, 2020
To enable debugging a container image layer by layer, we will
add a function to invoke command snippets in a chroot environment
assuming the root filesystem has already been laid out

- Separated formatting of the snippets in a separate function
called collate_snippets
- Added new function called invoke_in_rootfs which follows the
same procedure as invoke_in_container except using the rootfs
utilities
- Modified the run_chroot_command in utils/rootfs.py to put
the root_command call in a try-except loop so invoke_in_rootfs
can catch it

Resolves tern-tools#52

Signed-off-by: Nisha K <nishak@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned This issue has been assigned to someone who is actively working on it
Projects
None yet
Development

No branches or pull requests

1 participant