test: extend systemd.unit.create stage test
Extend the manifest for the systemd.unit.create stage to create one of each type of systemd unit currently supported.
This commit is contained in:
parent
30d8a16e41
commit
b347c38179
5 changed files with 123 additions and 0 deletions
|
|
@ -672,6 +672,27 @@
|
|||
"filename": "/etc/systemd/user/create-directory.service",
|
||||
"size": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.truncate",
|
||||
"options": {
|
||||
"filename": "/usr/lib/systemd/system/dev-disk-by-uuid-4f581be3-e8c2-4b44-9456-54df3ab92944.swap",
|
||||
"size": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.truncate",
|
||||
"options": {
|
||||
"filename": "/usr/lib/systemd/system/service.socket",
|
||||
"size": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.truncate",
|
||||
"options": {
|
||||
"filename": "/usr/lib/systemd/system/data.mount",
|
||||
"size": "0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,20 @@ pipelines:
|
|||
mpp-eval: gpgkeys
|
||||
exclude:
|
||||
docs: true
|
||||
|
||||
- type: org.osbuild.truncate
|
||||
options:
|
||||
filename: "/etc/systemd/user/create-directory.service"
|
||||
size: '0'
|
||||
- type: org.osbuild.truncate
|
||||
options:
|
||||
filename: "/usr/lib/systemd/system/dev-disk-by-uuid-4f581be3-e8c2-4b44-9456-54df3ab92944.swap"
|
||||
size: '0'
|
||||
- type: org.osbuild.truncate
|
||||
options:
|
||||
filename: "/usr/lib/systemd/system/service.socket"
|
||||
size: '0'
|
||||
- type: org.osbuild.truncate
|
||||
options:
|
||||
filename: "/usr/lib/systemd/system/data.mount"
|
||||
size: '0'
|
||||
|
|
|
|||
|
|
@ -710,6 +710,49 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.systemd.unit.create",
|
||||
"options": {
|
||||
"filename": "data.mount",
|
||||
"config": {
|
||||
"Unit": {
|
||||
"DefaultDependencies": true
|
||||
},
|
||||
"Mount": {
|
||||
"What": "/dev/sdb1",
|
||||
"Where": "/data"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.systemd.unit.create",
|
||||
"options": {
|
||||
"filename": "service.socket",
|
||||
"config": {
|
||||
"Unit": {
|
||||
"DefaultDependencies": true
|
||||
},
|
||||
"Socket": {
|
||||
"ListenStream": "/run/service/api.socket"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "org.osbuild.systemd.unit.create",
|
||||
"options": {
|
||||
"filename": "dev-disk-by-uuid-4f581be3-e8c2-4b44-9456-54df3ab92944.swap",
|
||||
"config": {
|
||||
"Unit": {
|
||||
"DefaultDependencies": true
|
||||
},
|
||||
"Swap": {
|
||||
"What": "/dev/disk/by-uuid/4f581be3-e8c2-4b44-9456-54df3ab92944"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,3 +59,31 @@ pipelines:
|
|||
- local-fs.target
|
||||
RequiredBy:
|
||||
- multi-user.target
|
||||
|
||||
- type: org.osbuild.systemd.unit.create
|
||||
options:
|
||||
filename: data.mount
|
||||
config:
|
||||
Unit:
|
||||
DefaultDependencies: true
|
||||
Mount:
|
||||
What: "/dev/sdb1"
|
||||
Where: "/data"
|
||||
|
||||
- type: org.osbuild.systemd.unit.create
|
||||
options:
|
||||
filename: service.socket
|
||||
config:
|
||||
Unit:
|
||||
DefaultDependencies: true
|
||||
Socket:
|
||||
ListenStream: "/run/service/api.socket"
|
||||
|
||||
- type: org.osbuild.systemd.unit.create
|
||||
options:
|
||||
filename: "dev-disk-by\x2duuid-4f581be3\x2de8c2\x2d4b44\x2d9456\x2d54df3ab92944.swap"
|
||||
config:
|
||||
Unit:
|
||||
DefaultDependencies: true
|
||||
Swap:
|
||||
What: "/dev/disk/by-uuid/4f581be3-e8c2-4b44-9456-54df3ab92944"
|
||||
|
|
|
|||
|
|
@ -14,6 +14,24 @@
|
|||
"sha256:69aa663d58cc063ea2d7659ac06354335c26e69e8fdb0036f952b082a70b5642"
|
||||
]
|
||||
},
|
||||
"/usr/lib/systemd/system/dev-disk-by-uuid-4f581be3-e8c2-4b44-9456-54df3ab92944.swap": {
|
||||
"content": [
|
||||
"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"sha256:4bb9e774438a2857a3845936c551b945f2ed6edabec3f9955d8e7d6b794a5a59"
|
||||
]
|
||||
},
|
||||
"/usr/lib/systemd/system/service.socket": {
|
||||
"content": [
|
||||
"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"sha256:2c029a69c7a57f920c99a3537c8db87b26825436e131a87106e25a69197d7eb6"
|
||||
]
|
||||
},
|
||||
"/usr/lib/systemd/system/data.mount": {
|
||||
"content": [
|
||||
"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"sha256:2f7e14d9785faa8e9b31188473cb5f87a7bc2a37b31b4c0c533f0e3bfd9d427d"
|
||||
]
|
||||
},
|
||||
"/usr/lib/sysimage/rpm/rpmdb.sqlite": {
|
||||
"content": [
|
||||
null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue