You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bootc status fails with EBUSY when the ESP is already mounted (e.g. via systemd.mount-extra) #2355
On composefs-based bootc hosts where the ESP is auto-mounted in the root
mount namespace before bootc status runs, the status command fails
consistently with:
Any bootc composefs deployment where the ESP is pre-mounted. One common
path: bootc install to-filesystem writes systemd.mount-extra=UUID=<ESP>:/boot:auto:ro into the deployment kernel
cmdline (visible in /proc/cmdline). At boot, systemd's fstab-generator
processes the cmdline arg and emits a boot.mount unit that mounts the
ESP read-only at /boot before user services start.
/boot mounted ro via systemd.mount-extra=UUID=...:/boot:auto:ro
Impact
bootc status, bootc status --json, and any consumer scripting
around them are broken on these hosts.
Suggested fix
Split the "mount ESP" primitive into mount_esp (unchanged, fresh
mount(2)) and a new mount_esp_readonly that gracefully reuses an
existing ESP mount via open_tree(OPEN_TREE_CLONE) + move_mount.
Wire the read-only status path to the latter; leave the write-path
callers (bootc install, gc) using mount_esp and failing loudly
on EBUSY — silently writing to a ro clone would be worse.
Activity
mount, store: Handle pre-mounted ESP in status and upgrade paths
mount, store: Handle pre-mounted ESP in status and upgrade paths
mount, store: Split ESP mount by access intent
mount, store: Split ESP mount by access intent