Skip to content

fix(svc-de): depend on legacy-cont-init so runtime env writes complete before the desktop starts - #184

Open
junkerderprovinz wants to merge 1 commit into
linuxserver:masterfrom
junkerderprovinz:fix/svc-de-legacy-cont-init-dep
Open

fix(svc-de): depend on legacy-cont-init so runtime env writes complete before the desktop starts#184
junkerderprovinz wants to merge 1 commit into
linuxserver:masterfrom
junkerderprovinz:fix/svc-de-legacy-cont-init-dep

Conversation

@junkerderprovinz

Copy link
Copy Markdown
Contributor

Fixes #178.

svc-de/run starts with #!/usr/bin/with-contenv bash, so it snapshots the container environment when it starts. Variables a downstream cont-init.d script writes at runtime into /run/s6/container_environment/ are produced by the legacy cont-init compatibility oneshot, which is not a declared dependency of svc-de (s6-rc-db all-dependencies svc-de does not list it). On slow storage the desktop can win the race and start openbox, and whatever it launches, before those variables exist.

This adds a dependency edge from svc-de to legacy-cont-init, so the desktop only starts after the legacy cont-init.d scripts and their env writes have completed. It is an additive ordering edge with no behaviour change on fast storage.

…e before the desktop starts (linuxserver#178)

Signed-off-by: junkerderprovinz <jdp@braethoria.com>
@junkerderprovinz

Copy link
Copy Markdown
Contributor Author

Friendly nudge on this one whenever you get a chance, it's green and conflict-free against main. Happy to adjust anything you'd want changed.

@thelamer thelamer self-assigned this Aug 14, 2026
@thelamer thelamer added the work-in-progress Stale exempt label Aug 14, 2026
@thelamer

Copy link
Copy Markdown
Member

I'll get this in on a next waterfall, do not have one planned yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

work-in-progress Stale exempt

Projects

Development

Successfully merging this pull request may close these issues.

[BUG] svc-de has no s6 dependency on legacy cont-init, so runtime env writes race the desktop

3 participants