Skip to content

Conversation

@yfyf
Copy link
Collaborator

@yfyf yfyf commented Jan 14, 2026

This is extracted from #293, decoupling the RAUC status file fixes from the actual checking that status is marked as Good post reboot.

A "naive" check fails currently, because /boot/status.ini gets corrupted due an (unclean) system_reset "soon" after an install (which is the equivalent of a power plug). The existing statusfile-recovery does not seem to be sufficient. It might be due to this being run in a VM and/or due to using a virtual file-backed disk, but illustrates a problem with using a FAT filesystem for persisting RAUC's status file.

Unfortunately, there is no way to trigger a "clean" reboot and no easy way to fix this for existing systems and their DISK images, so instead we work-around the issue by giving time for an unmount/fsync to happen.

A "naive" check fails currently, because /boot/status.ini gets
corrupted due an (unclean) system_reset "soon" after an install (which
is the equivalent of a power plug).  The existing statusfile-recovery
does not seem to be sufficient. It might be due to this being run in a
VM and/or due to using a virtual file-backed disk, but illustrates a
problem with using a FAT filesystem for persisting RAUC's status file.

Unfortunately, there is no way to trigger a "clean" reboot and no easy
way to fix this for existing systems and their DISK images, so instead
we work-around the issue by giving time for an unmount/fsync to happen.
@yfyf yfyf requested a review from knuton January 14, 2026 15:36
@yfyf yfyf added the reviewable Ready for initial or iterative review label Jan 14, 2026
Copy link
Member

@knuton knuton left a comment

Choose a reason for hiding this comment

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

Thanks! 👍

@knuton knuton merged commit f298886 into dividat:main Jan 14, 2026
28 checks passed
@knuton knuton removed the reviewable Ready for initial or iterative review label Jan 14, 2026
@yfyf yfyf deleted the check-status-good-now branch January 26, 2026 08:50
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