What is the best way to modify a systemd .service file ?

I want to modify the sddm.service file as stated in the last message of this issue : https://github.com/sddm/sddm/issues/703. I guess the way to do that is by adding the file systemd/system/sddm.service with the desired content in the files directory. However I don't know if this file will be overwritten during build time by the sddm package nor if there will be a conflict with the systemd module. What are your thought on that ?
GitHub
Issues · sddm/sddm
QML based X11 and Wayland display manager. Contribute to sddm/sddm development by creating an account on GitHub.
Solution:
I think the file to modify would be "/usr/lib/systemd/system/sddm.service". I don't know if you've updated your directory structure, I can help with that. About the sddm package or systemd module overriding your file changes, well, according to bluebuild docs:
#### modules: A list of modules that is executed in order. Multiple of the same module can be included....
Jump to solution
2 Replies
Solution
Aura
Aura2mo ago
I think the file to modify would be "/usr/lib/systemd/system/sddm.service". I don't know if you've updated your directory structure, I can help with that. About the sddm package or systemd module overriding your file changes, well, according to bluebuild docs:
#### modules: A list of modules that is executed in order. Multiple of the same module can be included.
So, if a files module that contains this file is the last (or one of the last) to be executed, it will override anything before it, and to the nature of the image being readonly, nothing will be able to modify the file.
benoit_lx
benoit_lx2mo ago
Thanks for your answer, that was the information I was looking for I will rebuild my image and mark this thread as solved if it goes ok
Want results from more Discord servers?
Add your server