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

Minor bits #20

Merged
merged 2 commits into from
Nov 2, 2024
Merged

Minor bits #20

merged 2 commits into from
Nov 2, 2024

Conversation

cgwalters
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@allisonkarlitskaya allisonkarlitskaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these

let mut cmdline = vec![];
let mut proc_cmdline = std::fs::File::open("/proc/cmdline")?;
proc_cmdline.read_to_end(&mut cmdline)?;
let cmdline = std::fs::read("/proc/cmdline")?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about this, thanks!

@allisonkarlitskaya allisonkarlitskaya merged commit 9f63bd3 into containers:main Nov 2, 2024
1 check passed
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.

2 participants