Skip to content

Wait for udev to settle after thin snapshot creation#9

Merged
guifranchi merged 1 commit into
mainfrom
fix/udev-settle-after-snapshot
May 20, 2026
Merged

Wait for udev to settle after thin snapshot creation#9
guifranchi merged 1 commit into
mainfrom
fix/udev-settle-after-snapshot

Conversation

@guifranchi

@guifranchi guifranchi commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • After lvcreate -s succeeds the kernel fires a uevent, but the /dev/<vg>/<lv> device node is created asynchronously by udevd
  • Mounting immediately after lvcreate_snapshot races against udev, producing special device /dev/runners/rootfs-default-X does not exist (exit status 32)
  • Adds udevadm settle --timeout=5 inside lvcreate_snapshot so the device node is guaranteed to exist before returning to callers

After lvcreate -s succeeds the kernel fires a uevent, but the /dev/<vg>/<lv>
device node is created asynchronously by udevd. Mounting the device
immediately after lvcreate can race against udev and fail with ENOENT.
Adding udevadm settle --timeout=5 ensures the device node exists before
returning control to callers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@guifranchi guifranchi self-assigned this May 20, 2026
@guifranchi guifranchi added the bug label May 20, 2026
@backlog-helper

backlog-helper Bot commented May 20, 2026

Copy link
Copy Markdown

Hi @guifranchi,

We've found some issues with your Pull Request.

  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@guifranchi
guifranchi merged commit 7559a9c into main May 20, 2026
1 check passed
@guifranchi
guifranchi deleted the fix/udev-settle-after-snapshot branch May 20, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant