stage/systemd-unit-create:paremeterize file location

User can now customize the systemd unit load path.
User can select between etc or usr , defaults to 'usr'.
Also user can customize the scope of the service between global
or system, defaults to system.

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
This commit is contained in:
Sayan Paul 2024-03-01 17:12:44 +05:30 committed by Achilleas Koutsou
parent 144b0563d6
commit 2d2cdd8097
4 changed files with 1105 additions and 54 deletions

View file

@ -616,6 +616,8 @@
"type": "org.osbuild.systemd.unit.create",
"options": {
"filename": "create-directory.service",
"unit-type": "global",
"unit-path": "etc",
"config": {
"Unit": {
"Description": "Create directory",

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"added_files": [
"/usr/lib/systemd/system/create-directory.service"
"/etc/systemd/user/create-directory.service"
],
"deleted_files": [],
"differences": {}