-
Notifications
You must be signed in to change notification settings - Fork 356
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
namespace info depends on /boot files #974
Comments
|
I'm on NixOS, but also work with systems that network boot (and thus don't have a |
Sure, I will assign you. You can reach out here if you are facing any problems. |
Hey, looking at this, from man page https://man7.org/linux/man-pages/man5/proc_config.gz.5.html it says
If so @terinjokes do you think we can get away with reading the info from |
I haven't thought about this issue in nearly 2 years. Is there a particular need to check config.gz or config? All the other runtimes work without this information available. AFAICT this is just informational, so just printing that it couldn't do a config check is probably fine? I don't think the availability of the build directory under |
I was just cleaning up old issues and this seemed good one to start on : )
I think that was the original solution mentioned by you 😅
Ok got it 👍
Yeah, I think a quick and best solution would be that if we cannot find the config, we just print
What did you check? both |
SGTM. |
Running
youki info
prints information about the running system. Part of this information is the enabled Linux namespaces. However this information is silently omitted if the file at/boot/config-$(uname -r)
is not available:https://github.com/containers/youki/blob/a72a33b3e946a33d83d555f210e89401ef57cef6/crates/youki/src/commands/info.rs#L180-L183
I propose two enhancements to this command:
/proc/config.gz
as an alternative to parsing /boot.The text was updated successfully, but these errors were encountered: