-
Notifications
You must be signed in to change notification settings - Fork 6
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
polkit.service needs to be restarted after installation #30
Comments
(I should note that this will stop polkit entirely before Rwfus starts, and start it when Rwfus finishes. This behavior might not be ideal in this specific case..) |
You should only need to restart it after launching rwfus. It doesn't hurt before or during the launch since it continues to see the original filesystem. |
That's true; however, it reuses existing machinery. I'd be up for adding a new config entry for restartable/reloadable units, though |
I'm not sure what you mean. Would you be willing to explain it to me? |
Since Rwfus 0.4.0 (if I remember correctly), rwfusd has been able to stop and start other services when it starts/stops. This was implemented, because SteamOS Offload uses systemd mount units to auto-mount certain things after /home/ is mounted. If you mask a mounted filesystem with another mounted filesystem, and then try to unmount the first filesystem, systemd will mark the mount unit as In 0.4.1, Rwfus uses this same "machinery" (stopping polkit, activating itself, starting polkit) to handle reloading polkit, even though it would not fail, because I already had code to do that. I'd be open to add code to explicitly reload units, if that'd be a good feature, but it seems to work just fine as-is. |
If you have anything that installs polkit actions in
/usr/share/polkit-1/actions/
thenpolkit.service
needs to be restarted to pick those changes up.I haven't checked the boot order yet, but it may require a change to the systemctl files as well.
My use case was I tried to install 1Password and have it use system unlock (e.g., polkit) and it wouldn't see the action. Since I just learned about polkit today, this took a while to debug. ;-)
The text was updated successfully, but these errors were encountered: