Repository navigation
build: Unbreak the Meson install script with Fedora CoreOS & systemd 261 - #1857
Merged
debarshiray merged 1 commit intoNov 12, 2026
Conversation
debarshiray
pushed a commit
to debarshiray/toolbox
that referenced
this pull request
Nov 12, 2026
As of systemd 261, bare 'systemd-tmpfiles --create' calls now attempt to
set permissions on / on systems which are not set to 0555 [1]. This
currently fails on Fedora CoreOS systems due to them having the
incorrect permissions (i.e., 0755) set while also having a read-only
root file system [2]. This leads to the following error:
fchmod() of / failed: Read-only file system
Traceback (most recent call last):
File "toolbox/meson_post_install.py", line 26, in <module>
subprocess.run(['systemd-tmpfiles', '--create'], check=True)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.15/subprocess.py", line 692, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['systemd-tmpfiles',
'--create']'
Since both entries in data/tmpfiles.d/toolbox.conf are under /run, it's
safe to restrict these calls to this directory with '--prefix /run' in
order to avoid that issue on Fedora CoreOS.
[1] systemd commit 7b2a10b594d7ed0f
systemd/systemd@7b2a10b594d7ed0f
systemd/systemd#41431
[2] coreos/fedora-coreos-tracker#2238
containers#1847
containers#1857
Signed-off-by: Rolv Apneseth <rolv.apneseth@gmail.com>
debarshiray
force-pushed
the
wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix
branch
from
November 12, 2026 11:45
bf87132 to
3a2b6bf
Compare
As of systemd 261, bare 'systemd-tmpfiles --create' calls now attempt to
set permissions on / on systems which are not set to 0555 [1]. This
currently fails on Fedora CoreOS systems due to them having the
incorrect permissions (i.e., 0755) set while also having a read-only
root file system [2]. This leads to the following error:
fchmod() of / failed: Read-only file system
Traceback (most recent call last):
File "toolbox/meson_post_install.py", line 26, in <module>
subprocess.run(['systemd-tmpfiles', '--create'], check=True)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.15/subprocess.py", line 692, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['systemd-tmpfiles',
'--create']' returned non-zero exit status 73.
Since both entries in data/tmpfiles.d/toolbox.conf are under /run, it's
safe to restrict these calls to this directory with '--prefix /run' in
order to avoid that issue on Fedora CoreOS.
[1] systemd commit 7b2a10b594d7ed0f
systemd/systemd@7b2a10b594d7ed0f
systemd/systemd#41431
[2] coreos/fedora-coreos-tracker#2238
containers#1847
containers#1857
Signed-off-by: Rolv Apneseth <rolv.apneseth@gmail.com>
debarshiray
force-pushed
the
wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix
branch
from
November 12, 2026 14:14
3a2b6bf to
ac33830
Compare
debarshiray
deleted the
wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix
branch
November 12, 2026 15:00
Contributor
|
|
Member
Author
Feel free to rebase #1847 on top of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As of systemd 261, bare
systemd-tmpfiles --createcalls now attempt toset permissions on
/on systems which are not set to0555[1]. Thiscurrently fails on Fedora CoreOS systems due to them having the
incorrect permissions (i.e.,
0755) set while also having a read-onlyroot file system [2]. This leads to the following error:
Since both entries in
data/tmpfiles.d/toolbox.confare under/run, it'ssafe to restrict these calls to this directory with
--prefix /runinorder to avoid that issue on Fedora CoreOS.
[1] systemd commit 7b2a10b594d7ed0f
systemd/systemd@7b2a10b594d7ed0f
systemd/systemd#41431
[2] coreos/fedora-coreos-tracker#2238
#1847
Signed-off-by: Rolv Apneseth rolv.apneseth@gmail.com