Skip to main content

org.osbuild.ln

Create links

Creates links within the tree or mounts. The target and link_name are specified as URLs. Only allows tree or mounts URLs.

Schema 1

{}

Schema 2

{
"options": {
"additionalProperties": false,
"required": [
"paths"
],
"properties": {
"paths": {
"description": "Array of links to create.",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"target",
"link_name"
],
"properties": {
"target": {
"type": "string",
"description": "The target for the link, relative or absolute"
},
"link_name": {
"oneOf": [
{
"type": "string",
"description": "The link path, if in a mount",
"pattern": "^mount://[^/]+/"
},
{
"type": "string",
"description": "The link path, if in a tree",
"pattern": "^tree://"
}
]
},
"symbolic": {
"type": "boolean",
"description": "Use a symbolic link instead of hard-linking. Defaults to False.",
"default": false
}
}
}
}
}
},
"devices": {
"type": "object",
"additionalProperties": true
},
"mounts": {
"type": "array"
},
"inputs": {
"type": "object",
"additionalProperties": true
}
}