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

Fix gcs init args wrapping when ConsolePipe is enabled #1334

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Mar 20, 2022

GCS init fails to parse the entropy socket when enabling ConsolePipe.
Fix by separating entropy parameters from the rest init args and
wrapping only init args with sh -c.

Signed-off-by: Maksim An maksiman@microsoft.com

GCS init fails to parse the entropy socket when enabling ConsolePipe.
Fix by separating entropy parameters from the rest init args and
wrapping only init args with `sh -c`.

Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl anmaxvl requested a review from a team as a code owner March 20, 2022 06:13
@dcantah
Copy link
Contributor

dcantah commented Mar 21, 2022

Looks like this changes from

/init sh -c "-e 1 /bin/vsockexec -e 109 /bin/gcs -v4 -log-format json -loglevel debug & exec sh"

to

/init -e 1 sh -c "/bin/vsockexec -e 109 /bin/gcs -v4 -log-format json -loglevel debug & exec sh"

is that right?

@dcantah
Copy link
Contributor

dcantah commented Mar 21, 2022

Why does github keep posting everything I comment twice...

@dcantah dcantah self-assigned this Mar 21, 2022
@anmaxvl
Copy link
Contributor Author

anmaxvl commented Mar 21, 2022

Looks like this changes from

/init sh -c "-e 1 /bin/vsockexec -e 109 /bin/gcs -v4 -log-format json -loglevel debug & exec sh"

to

/init -e 1 sh -c "/bin/vsockexec -e 109 /bin/gcs -v4 -log-format json -loglevel debug & exec sh"

is that right?

yup.

@anmaxvl anmaxvl merged commit dfe9b5e into microsoft:master Mar 22, 2022
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
GCS init fails to parse the entropy socket when enabling ConsolePipe.
Fix by separating entropy parameters from the rest init args and
wrapping only init args with `sh -c`.

Changes:
`/init sh -c "-e 1 /bin/vsockexec -e 109 /bin/gcs -v4 -log-format json -loglevel debug & exec sh"`
to
`/init -e 1 sh -c "/bin/vsockexec -e 109 /bin/gcs -v4 -log-format json -loglevel debug & exec sh"`

Signed-off-by: Maksim An <maksiman@microsoft.com>
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.

3 participants