Skip to content

build: Unbreak the Meson install script with Fedora CoreOS & systemd 261 - #1857

Merged
debarshiray merged 1 commit into
containers:mainfrom
debarshiray:wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix
Nov 12, 2026
Merged

debarshiray merged 1 commit into
containers:mainfrom
debarshiray:wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix

Conversation

@debarshiray

@debarshiray debarshiray commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

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

#1847

Signed-off-by: Rolv Apneseth rolv.apneseth@gmail.com

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build succeeded.
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/local/buildset/b33ab9dbdfe647fb992f02a7b83254f7

✔️ unit-test SUCCESS in 2m 03s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 2m 59s
✔️ unit-test-restricted SUCCESS in 2m 09s
✔️ system-test-fedora-rawhide-commands-options SUCCESS in 32m 55s
✔️ system-test-fedora-rawhide-runtime-environment-arch-fedora SUCCESS in 23m 22s
✔️ system-test-fedora-rawhide-runtime-environment-ubuntu SUCCESS in 5m 33s
✔️ system-test-fedora-44-commands-options SUCCESS in 31m 37s
✔️ system-test-fedora-44-runtime-environment-arch-fedora SUCCESS in 22m 44s
✔️ system-test-fedora-44-runtime-environment-ubuntu SUCCESS in 5m 32s
✔️ system-test-fedora-43-commands-options SUCCESS in 31m 45s
✔️ system-test-fedora-43-runtime-environment-arch-fedora SUCCESS in 22m 17s
✔️ system-test-fedora-43-runtime-environment-ubuntu SUCCESS in 5m 24s
✔️ system-test-fedora-coreos-next-commands-options SUCCESS in 33m 50s
✔️ system-test-fedora-coreos-next-runtime-environment-arch-fedora SUCCESS in 25m 10s
✔️ system-test-fedora-coreos-next-runtime-environment-ubuntu SUCCESS in 6m 42s
✔️ system-test-fedora-coreos-stable-commands-options SUCCESS in 31m 15s
✔️ system-test-fedora-coreos-stable-runtime-environment-arch-fedora SUCCESS in 23m 26s
✔️ system-test-fedora-coreos-stable-runtime-environment-ubuntu SUCCESS in 6m 03s
✔️ system-test-fedora-coreos-testing-commands-options SUCCESS in 33m 24s
✔️ system-test-fedora-coreos-testing-runtime-environment-arch-fedora SUCCESS in 24m 58s
✔️ system-test-fedora-coreos-testing-runtime-environment-ubuntu SUCCESS in 6m 38s

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
debarshiray force-pushed the wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix branch from bf87132 to 3a2b6bf Compare November 12, 2026 11:45
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed.
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/local/buildset/aea870e809934788b83ea4aaaf069a21

✔️ unit-test SUCCESS in 2m 14s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 43s
✔️ unit-test-restricted SUCCESS in 2m 15s
✔️ system-test-fedora-rawhide-commands-options SUCCESS in 34m 00s
✔️ system-test-fedora-rawhide-runtime-environment-arch-fedora SUCCESS in 23m 20s
✔️ system-test-fedora-rawhide-runtime-environment-ubuntu SUCCESS in 5m 42s
✔️ system-test-fedora-44-commands-options SUCCESS in 31m 05s
✔️ system-test-fedora-44-runtime-environment-arch-fedora SUCCESS in 24m 36s
✔️ system-test-fedora-44-runtime-environment-ubuntu SUCCESS in 5m 53s
✔️ system-test-fedora-43-commands-options SUCCESS in 30m 41s
✔️ system-test-fedora-43-runtime-environment-arch-fedora SUCCESS in 22m 00s
✔️ system-test-fedora-43-runtime-environment-ubuntu SUCCESS in 6m 10s
❌ system-test-fedora-coreos-next-commands-options FAILURE in 2m 54s
❌ system-test-fedora-coreos-next-runtime-environment-arch-fedora FAILURE in 3m 03s
❌ system-test-fedora-coreos-next-runtime-environment-ubuntu FAILURE in 3m 12s
✔️ system-test-fedora-coreos-stable-commands-options SUCCESS in 31m 31s
✔️ system-test-fedora-coreos-stable-runtime-environment-arch-fedora SUCCESS in 23m 21s
✔️ system-test-fedora-coreos-stable-runtime-environment-ubuntu SUCCESS in 6m 09s
❌ system-test-fedora-coreos-testing-commands-options FAILURE in 3m 27s
❌ system-test-fedora-coreos-testing-runtime-environment-arch-fedora FAILURE in 3m 18s
❌ system-test-fedora-coreos-testing-runtime-environment-ubuntu FAILURE in 3m 07s

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 debarshiray changed the title [WIP] ... build: Unbreak the Meson install script with Fedora CoreOS & systemd 261 Nov 12, 2026
@debarshiray
debarshiray force-pushed the wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix branch from 3a2b6bf to ac33830 Compare November 12, 2026 14:14
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build succeeded.
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/local/buildset/cc0e14b1f8304acc91fbfa0a37d735ee

✔️ unit-test SUCCESS in 2m 10s
✔️ unit-test-migration-path-for-coreos-toolbox SUCCESS in 3m 16s
✔️ unit-test-restricted SUCCESS in 2m 11s
✔️ system-test-fedora-rawhide-commands-options SUCCESS in 33m 01s
✔️ system-test-fedora-rawhide-runtime-environment-arch-fedora SUCCESS in 23m 23s
✔️ system-test-fedora-rawhide-runtime-environment-ubuntu SUCCESS in 5m 49s
✔️ system-test-fedora-44-commands-options SUCCESS in 30m 53s
✔️ system-test-fedora-44-runtime-environment-arch-fedora SUCCESS in 21m 57s
✔️ system-test-fedora-44-runtime-environment-ubuntu SUCCESS in 5m 34s
✔️ system-test-fedora-43-commands-options SUCCESS in 30m 41s
✔️ system-test-fedora-43-runtime-environment-arch-fedora SUCCESS in 21m 33s
✔️ system-test-fedora-43-runtime-environment-ubuntu SUCCESS in 5m 20s
✔️ system-test-fedora-coreos-next-commands-options SUCCESS in 33m 15s
✔️ system-test-fedora-coreos-next-runtime-environment-arch-fedora SUCCESS in 25m 07s
✔️ system-test-fedora-coreos-next-runtime-environment-ubuntu SUCCESS in 7m 15s
✔️ system-test-fedora-coreos-stable-commands-options SUCCESS in 30m 41s
✔️ system-test-fedora-coreos-stable-runtime-environment-arch-fedora SUCCESS in 23m 29s
✔️ system-test-fedora-coreos-stable-runtime-environment-ubuntu SUCCESS in 6m 03s
✔️ system-test-fedora-coreos-testing-commands-options SUCCESS in 33m 07s
✔️ system-test-fedora-coreos-testing-runtime-environment-arch-fedora SUCCESS in 25m 02s
✔️ system-test-fedora-coreos-testing-runtime-environment-ubuntu SUCCESS in 6m 51s

@debarshiray
debarshiray merged commit ac33830 into containers:main Nov 12, 2026
2 of 3 checks passed
@debarshiray
debarshiray deleted the wip/rishi/meson_post_install-systemd-261-tmpfiles-prefix branch November 12, 2026 15:00
@Rolv-Apneseth

Copy link
Copy Markdown
Contributor

next is no longer ahead of testing so looks like the other issue in #1847 is no longer present. Anyway, feel free to make whatever changes you want there, or leave it until the next branching if you prefer.

@debarshiray

Copy link
Copy Markdown
Member Author

next is no longer ahead of testing so looks like the other issue in #1847 is no longer present. Anyway, feel free to make whatever changes you want there, or leave it until the next branching if you prefer.

Feel free to rebase #1847 on top of main, but no pressure. I want to get the Toolbx 0.4 release out first, because we haven't had one in a while.

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