Skip to content

Stop overriding systemd's var.conf - #933

Merged
lewisgoddard merged 2 commits into
mainfrom
fix/lewisgoddard/anacron
Oct 24, 2026
Merged

lewisgoddard merged 2 commits into
mainfrom
fix/lewisgoddard/anacron

Conversation

@lewisgoddard

@lewisgoddard lewisgoddard commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Our tmpfiles.d/var.conf had the same name as systemd's, so it replaced it, and /var/spool, /var/log, /var/cache and /var/lib were no longer created on a fresh root partition. tmpfiles won't create a directory under a missing parent, so d /var/spool/anacron failed and anacron.service failed on every boot with Can't chdir to /var/spool/anacron.

Instead of maintaining an override that needs to carry all of the upstream var.conf, just override with name ordering and patch the changes we want.

  • Move L+ /var/run to 00-var-run.conf. It sorts before systemd's var.conf, so it still replaces a /var/run directory (Fix var/run symlink #925).
  • Move d /var/spool/anacron to 98-anacron.conf.

Updated 00-var-run.conf to sort before systemd's var.conf and replace /var/run directory.
@lewisgoddard
lewisgoddard requested a review from jumpyvi October 24, 2026 17:36
@lewisgoddard

lewisgoddard commented Oct 24, 2026 •

Copy link
Copy Markdown
Member Author

This is the last service that fails to start on the 2nd boot, others fail to start on 1st boot only.

@github-actions

Copy link
Copy Markdown

Installer builds for 7ad298b

Do not use these installers for production systems. They are intended for testing purposes only. They will update to the latest PR build, which will break your install eventually.

Arch ISO Checksum
amd64 elementaryos-9.0-proposed-x86-64.20261024173645.iso sha256
arm64 elementaryos-9.0-proposed-arm64.20261024173658.iso sha256

@lewisgoddard
lewisgoddard merged commit 88ea0f0 into main Oct 24, 2026
3 checks passed
@lewisgoddard
lewisgoddard deleted the fix/lewisgoddard/anacron branch October 24, 2026 18:25
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.

2 participants