Skip to content

Do slot external mount check after pre-install handler #1681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HiFiPhile
Copy link

Currently if the target slot is already mounted, installation will fail even if unmount is handled by pre-install handler. A 2nd launch is needed to make it work.

Currently if the target slot is already mounted installation will fail even if unmount is handled by pre-install handler. A 2nd launch is need to make it work.

Signed-off-by: Zixun LI <zli@ogga.fr>
@jluebbe
Copy link
Member

jluebbe commented Apr 2, 2025

Normally, RAUC should only update inactive slots. One exception is [slot.foo.0]allow-mounted=true, which can be used with to modify mounted slots via install (not pre-install) hooks.

Please describe your use-case. How do you synchronize use of that slot with the rest of the system?

@HiFiPhile
Copy link
Author

How do you synchronize use of that slot with the rest of the system?

It's the inactive slot which is not mounted in normal case. Here pre-install handler do the cleanup job if previous installation is aborted, as you said in #1678.

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