Skip to content

systemd-remount-fs.service fails on f42 disk images with composefs enabled #81

Open
@pcdubs

Description

@pcdubs

Describe the bug

After enabling composefs in Fedora 42, systemd-remount-fs.service fails.

sudo systemctl status systemd-remount-fs.service
× systemd-remount-fs.service - Remount Root and Kernel File Systems
     Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; enabled-runtime; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf, 50-keep-warm.conf
     Active: failed (Result: exit-code) since Thu 2025-03-06 16:49:35 UTC; 54s ago
 Invocation: d80bd8002b7a48ecac7fa630370e9734
       Docs: man:systemd-remount-fs.service(8)
             https://systemd.io/API_FILE_SYSTEMS
    Process: 795 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
   Main PID: 795 (code=exited, status=1/FAILURE)
   Mem peak: 1.5M
        CPU: 34ms

Mar 06 16:49:35 localhost.localdomain systemd-remount-fs[795]: /usr/bin/mount for / exited with exit status 32.
Mar 06 16:49:35 localhost.localdomain systemd-remount-fs[799]: mount: /: cannot remount /dev/vda3 read-write, is write-protected.
Mar 06 16:49:35 localhost.localdomain systemd-remount-fs[799]:        dmesg(1) may have more information after failed mount system call.
Mar 06 16:49:35 localhost.localdomain systemd[1]: systemd-remount-fs.service: Main process exited, code=exited, status=1/FAILURE
Mar 06 16:49:35 localhost.localdomain systemd[1]: systemd-remount-fs.service: Failed with result 'exit-code'.
Mar 06 16:49:35 localhost.localdomain systemd[1]: Failed to start systemd-remount-fs.service - Remount Root and Kernel File Systems.
[root@localhost ~]# cat /usr/lib/ostree/prepare-root.conf
[composefs]
enabled = yes

This only happens on the disk images, installations by anaconda work as expected:

rpm-ostree status
State: idle
Deployments:
● fedora-iot:fedora/devel/x86_64/iot
                  Version: 42.20250306.0 (2025-03-06T16:41:33Z)
                   Commit: 11051ba0b7432a97f39ad197ffef7a96361d743400598d0ef60e880b2b778ca5
             GPGSignature: Valid signature by B0F4950458F69E1150C6C5EDC8AC4916105EF944

  fedora-iot:fedora/devel/x86_64/iot
                  Version: 42.20250303.0 (2025-03-03T15:32:30Z)
                   Commit: 4252a6b67922938096981b0f581fb55d09cd396a43e110ca8209261b32c56383
             GPGSignature: Valid signature by B0F4950458F69E1150C6C5EDC8AC4916105EF944
[root@fitlet2 ~]# systemctl status systemd-remount-fs.service
● systemd-remount-fs.service - Remount Root and Kernel File Systems
     Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; enabled-runtime; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf, 50-keep-warm.conf
     Active: active (exited) since Thu 2025-03-06 14:23:43 EST; 30min ago
 Invocation: ad5378cf211e4c688069cd266763992c
       Docs: man:systemd-remount-fs.service(8)
             https://systemd.io/API_FILE_SYSTEMS
    Process: 959 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=0/SUCCESS)
   Main PID: 959 (code=exited, status=0/SUCCESS)
   Mem peak: 1.6M
        CPU: 28ms
[root@fitlet2 ~]# cat /usr/lib/ostree/prepare-root.conf
[composefs]
enabled = yes

OpenQA:
https://openqa.fedoraproject.org/tests/3275480#step/base_services_start/9

See:
osbuild/osbuild-composer#4593

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions