-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement --no-dbus option to work in chroot environment #23
Comments
Please check that this works and solves your issue and return to let me know. Thanks. |
What should I check? I already tested the --no-dbus option. |
Oh, I thought you said you hadn't checked it if works in the chroot. |
I tested it in chroot when I fixed the system some while ago. It's still configured and snapshots are created after package installation/update with --no-dbus. |
Here's what the snapper manpage says about
I'm hesitant to just add |
Adding - |
The snap-pac pre transaction hook fails to execute when executed in a chrooted environment.
E.g.: One of my other Arch laptops had an issue during installation and I couldn't boot anymore. I needed to boot a rescue system and chroot into the system. However, I couldn't run pacman. The snap-pac pre transaction hook failed because snapper can't reach the DBUS. I needed to add --no-dbus to the snapper command in the snap-pac script to be able to run pacman again.
More information can be found here:
Snapper is broken due to dependency on dbus
Work without DBus
If you want to use the option only in chroot, you could also implement something like this:
I haven't checked yet if it really works though.
It looks like the DBUS connection is only there to allow non-root users to use snapper. Since pacman is executed with root permissions, just adding --no-dbus should be sufficient.
The text was updated successfully, but these errors were encountered: