Skip to content

kernel: append to init.rc instead of prepending to atrace.rc (https:/…#1017

Merged
rifsxd merged 1 commit into
KernelSU-Next:devfrom
pershoot:dev1
Dec 26, 2025
Merged

kernel: append to init.rc instead of prepending to atrace.rc (https:/…#1017
rifsxd merged 1 commit into
KernelSU-Next:devfrom
pershoot:dev1

Conversation

@pershoot

@pershoot pershoot commented Dec 26, 2025

Copy link
Copy Markdown
Collaborator

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.

…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.
@rifsxd rifsxd merged commit 81c604a into KernelSU-Next:dev Dec 26, 2025
32 of 33 checks passed
@pershoot pershoot deleted the dev1 branch December 26, 2025 20:20
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>
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