Skip to content

gluon-setup-mode: clean up rc.d handling#3623

Open
neocturne wants to merge 2 commits intofreifunk-gluon:mainfrom
neocturne:procd-bind-mount
Open

gluon-setup-mode: clean up rc.d handling#3623
neocturne wants to merge 2 commits intofreifunk-gluon:mainfrom
neocturne:procd-bind-mount

Conversation

@neocturne
Copy link
Member

@neocturne neocturne commented Nov 25, 2025

Replace procd patch with a cleaner, (hopefully) upstreamable solution.

The diff looks much larger than it is because of all files in rc.d being moved out of the way and replaced with symlinks (without any content changes).

Draft until the procd patch has been accepted upstream, which I intend to take care of soon.

@neocturne neocturne added this to the v2026.1 milestone Nov 25, 2025
@github-actions github-actions bot added 3. topic: package Topic: Gluon Packages 3. topic: config-mode This is about the configuration mode labels Nov 25, 2025
Make the setup-mode-specific init scripts a bit more regular, for use
with `procd -I ...`.
The new solution does not rely on a magical file /tmp/rc_d_path to pass
information from preinit to procd. Instead, the rc.d path is set as a
command line argument, which is injected using a bind-mounted wrapper
over /sbin/procd.
@neocturne neocturne marked this pull request as ready for review February 27, 2026 19:44
@rotanid rotanid requested review from blocktrron and maurerle March 5, 2026 23:42
@rotanid rotanid added the 2. status: waiting-on-review Awaiting review from the assignee but also interested parties. label Mar 5, 2026
Copy link
Member

@maurerle maurerle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

I did need some time to understand, what the procd-setup-mode content does.

  1. In preinit of setup_mode service we mount a new /sbin/procd
  2. This is called after preinit
  3. When called, the custom procd unmounts itself, starts the underlaying original /sbin/procd with a changed custom service directory
  4. procd runs services in the custom directory instead of all "normal" services

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

Labels

2. status: waiting-on-review Awaiting review from the assignee but also interested parties. 3. topic: config-mode This is about the configuration mode 3. topic: package Topic: Gluon Packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants