-
Notifications
You must be signed in to change notification settings - Fork 0
gadget: add --pid1 mode #10
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
base: main
Are you sure you want to change the base?
Conversation
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 48f6f0e863
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex can you fix the review comments? |
|
To use Codex here, create an environment for this repo. |
|
@codex can you fix the review comments? |
|
Summary
Testing
|
ee62302 to
8cfb76e
Compare
This option is automatically enabled if arg0 == /init If enabled and $PID != 1, error. Otherwise, cosplay as a cursed initrd. Mount the absolute minimum VFS, probe the minimum extra modules, in order to get a UDC to appear. Then, fork a typical smoo-gadget. Once that brings up a rootfs, we pivot into that. We assume we're pivoting into a systemd pid1, and seed /run/systemd/system with a unit to ensure that smoo-gadget is adopted properly in the live system. Signed-off-by: Sam Day <me@samcday.com> Assisted-by: gpt-5.1-codex
This option is automatically enabled if arg0 == /init
If enabled and $PID != 1, error.
Otherwise, cosplay as a cursed initrd. Mount the absolute minimum VFS, probe the minimum extra modules, in order to get a UDC to appear. Then, fork a typical smoo-gadget. Once that brings up a rootfs, we pivot into that.
We assume we're pivoting into a systemd pid1, and seed /run/systemd/system with a unit to ensure that smoo-gadget is adopted properly in the live system.
Assisted-by: gpt-5.1-codex