Skip to main content

org.osbuild.ostree.deployment

OSTree deployment mount service

This mount service will setup all needed bind mounts so that a given tree will look like an active OSTree deployment, very much as OSTree does during early boot.

More specifically it will:

  • setup the sysroot bindmount to the deployment
  • setup the shared var directory
  • bind the boot directory into the deployment

Host commands used: mount

Schema 1

{}

Schema 2

{
"additionalProperties": false,
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"options": {
"type": "object",
"required": [
"deployment"
],
"properties": {
"source": {
"type": "string",
"pattern": "^(mount|tree)$",
"default": "tree",
"description": "The source of the OSTree filesystem tree. If 'mount', there should be a preceding mount defined that's mounted at /."
},
"deployment": {
"type": "object",
"additionalProperties": false,
"oneOf": [
{
"properties": {
"default": {
"enum": [
false
]
}
},
"required": [
"osname",
"ref"
]
},
{
"properties": {
"default": {
"enum": [
true
]
}
},
"not": {
"anyOf": [
{
"required": [
"osname"
]
},
{
"required": [
"ref"
]
},
{
"required": [
"serial"
]
}
]
}
}
],
"properties": {
"osname": {
"description": "Name of the stateroot to be used in the deployment",
"type": "string"
},
"ref": {
"description": "OStree ref to create and use for deployment",
"type": "string"
},
"serial": {
"description": "The deployment serial (usually '0')",
"type": "number",
"default": 0
},
"default": {
"description": "Find and use the default ostree deployment",
"type": "boolean",
"default": false
}
}
}
}
}
}
}