Skip to content

Fix panic due to after.sh prematurely quitting on shutdown#409

Merged
fosslinux merged 1 commit intofosslinux:masterfrom
Googulator:fix-premature-shutdown
Jan 12, 2024
Merged

Fix panic due to after.sh prematurely quitting on shutdown#409
fosslinux merged 1 commit intofosslinux:masterfrom
Googulator:fix-premature-shutdown

Conversation

@Googulator
Copy link
Copy Markdown
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.

Comment thread steps/improve/after.sh Outdated
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
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