kernel: append to init.rc instead of prepending to atrace.rc (https:/…#1017
Merged
Conversation
…ernelSU#3107) Even though they are all triggered in post-fs-data stage, init.rc get parsed and triggered first. This will make module scripts run eariler and help prevent race condition between module rc executes and service starts. This also aligns behavior with Magisk.
maxsteeel
pushed a commit
to maxsteeel/KernelSU-Next
that referenced
this pull request
Dec 27, 2025
…ernelSU#3107) (KernelSU-Next#1017) Even though they are all triggered in post-fs-data stage, init.rc get parsed and triggered first. This will make module scripts run eariler and help prevent race condition between module rc executes and service starts. This also aligns behavior with Magisk. Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
maxsteeel
pushed a commit
to maxsteeel/KernelSU-Next
that referenced
this pull request
Dec 27, 2025
…ernelSU#3107) (KernelSU-Next#1017) Even though they are all triggered in post-fs-data stage, init.rc get parsed and triggered first. This will make module scripts run eariler and help prevent race condition between module rc executes and service starts. This also aligns behavior with Magisk. Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
rifsxd
pushed a commit
that referenced
this pull request
Dec 27, 2025
* kernel: fix manager crowning (or maybe not) * sulogv2 * kernel: Update build setup (#1010) * kernel: append to init.rc instead of prepending to atrace.rc (tiann/KernelSU#3107) (#1017) Even though they are all triggered in post-fs-data stage, init.rc get parsed and triggered first. This will make module scripts run eariler and help prevent race condition between module rc executes and service starts. This also aligns behavior with Magisk. Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com> * kernel: create helper for checking init.rc compat * Using for loop is a meme. * Ref: https://github.com/topjohnwu/Magisk/blob/01cb75eaefbd14c2d10772ded3942660ebf0285f/native/src/init/rootdir.cpp#L317 Signed-off-by: rsuntk <rissu.ntk@gmail.com> * kernel: Make Kbuild a little bit more readable --------- Signed-off-by: rsuntk <rissu.ntk@gmail.com> Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com> Co-authored-by: pershoot <190600+pershoot@users.noreply.github.com> Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com> Co-authored-by: rsuntk <rissu.ntk@gmail.com>
re-noroi
pushed a commit
to re-noroi/KernelSU-Next
that referenced
this pull request
Jan 1, 2026
* kernel: fix manager crowning (or maybe not) * sulogv2 * kernel: Update build setup (KernelSU-Next#1010) * kernel: append to init.rc instead of prepending to atrace.rc (tiann/KernelSU#3107) (KernelSU-Next#1017) Even though they are all triggered in post-fs-data stage, init.rc get parsed and triggered first. This will make module scripts run eariler and help prevent race condition between module rc executes and service starts. This also aligns behavior with Magisk. Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com> * kernel: create helper for checking init.rc compat * Using for loop is a meme. * Ref: https://github.com/topjohnwu/Magisk/blob/01cb75eaefbd14c2d10772ded3942660ebf0285f/native/src/init/rootdir.cpp#L317 Signed-off-by: rsuntk <rissu.ntk@gmail.com> * kernel: Make Kbuild a little bit more readable --------- Signed-off-by: rsuntk <rissu.ntk@gmail.com> Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com> Co-authored-by: pershoot <190600+pershoot@users.noreply.github.com> Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com> Co-authored-by: rsuntk <rissu.ntk@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
kernel: append to init.rc instead of prepending to atrace.rc (tiann/KernelSU#3107)
Even though they are all triggered in post-fs-data stage, init.rc get
parsed and triggered first. This will make module scripts run eariler
and help prevent race condition between module rc executes and service
starts. This also aligns behavior with Magisk.