-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added openRC daemon #178
Added openRC daemon #178
Conversation
Hello,
I have no new ideas at the moment...
I wonder if this is a problem for building the package on Arch Linux. |
@maximbaz |
Hey! Thanks for pinging me again, it's very helpful! And you were correct, I just tested this, it won't work as is when building an Arch package, I get the following error I think a parameter would make more sense, both not to deal with chroot (less magic is better 😁 ) and also for consistency, so that all things are configured identically. Finally, I can see in patch you use I'll keep an eye for the thread, to see if you keep systemd as "default choice", and if not I'll remember to pass the parameter to use systemd when building Arch package. Thanks again for the ping, sorry it took me long to reply 🙂 |
hello,
Thank you very much for your message, it is much appreciated.
If e.g: Makefile with systemd(by default)/ OpenRC parameters:
|
its fine with me. I don't know much about Arch packages and how they work, so bear with me here. |
Writing a MAKEFILE file isn't easy.
If your distribution allows it, this would indeed be a good solution. |
So this guy https://github.com/oshaughnessyj/grub-btrfs-openrc is not answering to my pull request and I can not figure out an other way to contact him. So I did the openRC daemon.
I could not find a better way than polling for the snapshot directory of timeshift every five seconds until it is mounted. This only works because the directory is only available after timeshift mounted the parent directory.
Its a terrible hack, and I would be happy if someone has a better idea how to do this. But I am testing the daemon right now on my system an it works fine.
I also changed the Makefile to decide if systemd and openRC are present on the system and install the corresponding service. Checking for systemd by checking if /run/systemd/system exists is also kind of terrible, but this is how they do it: https://www.freedesktop.org/software/systemd/man/sd_booted.html