Skip to content
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

Race condition with rpm-ostree distributions #20

Open
LukeShortCloud opened this issue Jan 10, 2024 · 1 comment
Open

Race condition with rpm-ostree distributions #20

LukeShortCloud opened this issue Jan 10, 2024 · 1 comment

Comments

@LukeShortCloud
Copy link
Contributor

This project works great on Fedora Workstation. However, it does not on Fedora Silverblue and other rpm-ostree distributions. rpm-ostree manually recreates the /etc/fstab during boot. The udev rules kick off immediately before that finishes so it ends up creating mounts in /media for file systems in the /etc/fstab (boot, root, and home at least). I added a 10 second sleep to the script and then it works as expected.

A short-term hack could be to check for the binary at /usr/bin/rpm-ostree and then add a sleep but that is not ideal. That also slows down mounts after a system is booted where this is no longer an issue. I'll keep exploring better workarounds.

@patrislav1
Copy link
Contributor

I don't have any of these distros, but could it possibly help to add After=rpm-ostree.service (or whatever the name of this service is) to media-automount@.service?

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

No branches or pull requests

2 participants