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

Enter host mount namespace #39

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Enter host mount namespace #39

merged 1 commit into from
Oct 30, 2018

Conversation

awh
Copy link
Contributor

@awh awh commented Oct 30, 2018

Use the tools installed in the host to effect reboots, eventually facilitating the use of commands such as needs-restart to determine if reboots are required.

Use the tools installed in the host to effect reboots, and allow
the execution of commands such as `needs-restart` to determine if
reboots are required.
@awh awh merged commit c8bb178 into master Oct 30, 2018
@awh awh deleted the nsenter-host-mount-namepace branch October 30, 2018 14:40
log.Fatalf("Unable to determine existence of sentinel: %v", err)
return false // unreachable; prevents compilation error
// Relies on hostPID:true and privileged:true to enter host mount space
sentinelCmd := newCommand("/usr/bin/nsenter", "-m/proc/1/ns/mnt", "--", "/usr/bin/test", "-f", rebootSentinel)

Choose a reason for hiding this comment

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

Whose job is it to remove the /var/run/reboot-required file? Will this result in reboot loops?

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.

None yet

2 participants