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 panic due to after.sh prematurely quitting on shutdown #409

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

Googulator
Copy link
Collaborator

The sysrq shutdown trigger takes some time to fully shut down the system, during which init is expected to continue running. Since after.sh is the last step in our init, if it quits before shutdown is complete, Linux will panic with "Attempted to kill init".

Add an infinite loop after shutdown is issued via sysrq to prevent this.

The sysrq shutdown trigger takes some time to fully shut down the system,
during which init is expected to continue running. Since after.sh is the
last step in our init, if it quits before shutdown is complete, Linux will
panic with "Attempted to kill init".

Add an infinite loop after shutdown is issued via sysrq to prevent this.
@Googulator Googulator force-pushed the fix-premature-shutdown branch from 1c2bd51 to 36c1925 Compare January 12, 2024 18:55
@fosslinux fosslinux merged commit 1ddc0bc into fosslinux:master Jan 12, 2024
5 checks 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.

3 participants