Skip to content

credentials: Use remote-fs.target for virtiofs mount ordering#204

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters:fix-virtiofs-mount-ordering
Feb 5, 2026
Merged

credentials: Use remote-fs.target for virtiofs mount ordering#204
cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters:fix-virtiofs-mount-ordering

Conversation

@cgwalters
Copy link
Collaborator

The original mount unit configuration used Before=local-fs.target, which could cause issues with virtiofs mounts that depend on virtio transport infrastructure being available.

Change the mount units to use Before=remote-fs.target instead. This is more appropriate because virtiofs is conceptually similar to a remote filesystem - it requires external infrastructure (virtio transport) to be available, similar to how NFS requires network connectivity.

This follows systemd conventions where remote-fs.target is used for filesystems that depend on infrastructure beyond the local disk.

Assisted-by: OpenCode (Claude claude-opus-4-5-20250114)

The original mount unit configuration used Before=local-fs.target, which
could cause issues with virtiofs mounts that depend on virtio transport
infrastructure being available.

Change the mount units to use Before=remote-fs.target instead. This is
more appropriate because virtiofs is conceptually similar to a remote
filesystem - it requires external infrastructure (virtio transport) to
be available, similar to how NFS requires network connectivity.

This follows systemd conventions where remote-fs.target is used for
filesystems that depend on infrastructure beyond the local disk.

Assisted-by: OpenCode (Claude claude-opus-4-5-20250114)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the fix-virtiofs-mount-ordering branch from 705845a to 9e05e3e Compare February 4, 2026 15:49
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly changes the systemd mount unit ordering for virtiofs mounts from local-fs.target to remote-fs.target. This is a logical improvement, as virtiofs filesystems depend on the virtio transport infrastructure, making them conceptually similar to remote filesystems. The changes are applied consistently, and the reasoning is well-documented in comments and the PR description. I have one minor suggestion to improve the documentation's accuracy.

@cgwalters cgwalters enabled auto-merge (rebase) February 5, 2026 20:02
@cgwalters cgwalters merged commit be88173 into bootc-dev:main Feb 5, 2026
13 checks passed
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