Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use environment variables to tell systemd to write files in /etc/writable #154

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

valentindavid
Copy link
Contributor

This is a proof of concept. Do not merge.

In systemd package, we have a patch to change the path for writing symlinks/files /etc/localtime, /etc/hostname, etc.

I tried to make a different patch. Similar in principle but more generic. And submit it upstream in PR systemd/systemd#29831

But upstream proposed instead we use environment variables instead.

This PR patches systemd to support environment variable configuration of the paths. And shows the configuration needed for core-base.

@enr0n
Copy link

enr0n commented Jan 19, 2024

I didn't look at the patch in too great of detail, since that will happen more on the upstream PR, but it generally looks good to me. The drop-in configs make sense and would be a much nicer way to handle this.

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.

None yet

2 participants