Skip to content

Conversation

@b4u-mw
Copy link

@b4u-mw b4u-mw commented Dec 1, 2025

This PR improves the robustness of RAUC when working with UBIFS and casync, specifically addressing issues with seeding from the active rootfs.

It implements the approach suggested in the discussion of #774 by using ext_mount_point as the source for a read-only bind mount when seeding. This avoids issues with re-mounting already mounted filesystems (like UBIFS) and allows safe seeding from the active slot.

Additionally, it improves slot detection by:

Resolving symlinks when matching devices in r_slot_find_by_device.
Resolving UBI volume names (e.g. ubi0:volname) to their device nodes to correctly detect external mount points.

Replaces #774
Fixes #772

Disclaimer: I'm neither a C developer nor do I have deep knowledge of rauc. So I only figured out what the problems are, and did the tests. The patches are written by AI and reviewed by myself with my limited knowledge.

@b4u-mw b4u-mw changed the title WiP Bind-mount root as seed for casync WiP Improve casync seeding and slot detection (UBIFS support) Dec 1, 2025
@ejoerns ejoerns marked this pull request as draft December 4, 2025 10:11
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.

1 participant