agama/rust/share/examples/storage/drives.json

95 lines
2 KiB
JSON

{
"storage": {
"boot": {
"configure": true,
"device": "vda"
},
"drives": [
{
"search": "/dev/vda",
"alias": "vda",
"ptableType": "gpt",
"partitions": [
{
"search": {
"ifNotFound": "skip"
},
"delete": true
},
{
"id": "linux",
"size": "10 GiB",
"encryption": {
"luks1": {
"password": "notsecret"
}
},
"filesystem": {
"type": {
"btrfs": {
"snapshots": true
}
},
"path": "/",
"mountBy": "uuid",
"mountOptions": ["ro"]
}
},
{
"encryption": {
"luks2": {
"password": "notsecret",
"label": "home"
}
},
"filesystem": {
"type": "xfs",
"path": "/home"
}
},
{
"encryption": "random_swap",
"filesystem": {
"type": "swap",
"path": "swap"
},
"size": "2 GiB"
}
]
},
{
"search": "/dev/vdb",
"partitions": [
{
"search": {
"condition": { "name": "/dev/vdb1" },
"ifNotFound": "skip"
},
"deleteIfNeeded": true
},
{
"search": "*",
"delete": true
},
{
"filesystem": {
"type": "xfs",
"path": "/data"
},
"size": { "min": "50 GiB" }
}
]
},
{
"search": {
"ifNotFound": "skip"
},
"filesystem": {
"reuseIfPossible": true,
"type": "ext4",
"path": "/var/log"
}
}
]
}
}