Skip to content

Commit

Permalink
schema: add/update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Jul 16, 2024
1 parent d4eb431 commit 57e5499
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 54 deletions.
8 changes: 8 additions & 0 deletions rust/agama-lib/share/examples/autoyast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"legacyAutoyastStorage": [
{
"device": "/dev/vdc",
"use": "all"
}
]
}
63 changes: 63 additions & 0 deletions rust/agama-lib/share/examples/storage-guided.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"storage": {
"guided": {
"target": {
"disk": "/dev/vdc"
},
"boot": {
"configure": true,
"device": "/dev/vda"
},
"encryption": {
"password": "notsecret",
"method": "luks2",
"pbkdFunction": "argon2i"
},
"space": {
"policy": "custom",
"actions": [
{ "resize": "/dev/vda" },
{ "forceDelete": "/dev/vdb1" }
]
},
"volumes": [
{
"mount": {
"path": "/",
"options": ["ro"]
},
"filesystem": {
"btrfs": {
"snapshots": true
}
},
"size": [1024, "5 Gib"],
"target": "default"
},
{
"mount": {
"path": "/home"
},
"filesystem": "xfs",
"size": {
"min": "5 GiB",
"max": "20 GiB"
},
"target": {
"newVg": "/dev/vda"
}
},
{
"mount": {
"path": "swap"
},
"filesystem": "swap",
"size": "8 GiB",
"target": {
"newPartition": "/dev/vda"
}
}
]
}
}
}
116 changes: 62 additions & 54 deletions rust/agama-lib/share/examples/storage.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,71 @@
{
"storage": {
"guided": {
"target": {
"disk": "/dev/vdc"
},
"boot": {
"configure": true,
"device": "/dev/vda"
},
"encryption": {
"password": "notsecret",
"method": "luks2",
"pbkdFunction": "argon2i"
},
"space": {
"policy": "custom",
"actions": [
{ "resize": "/dev/vda" },
{ "forceDelete": "/dev/vdb1" }
]
},
"volumes": [
{
"mount": {
"path": "/",
"options": ["ro"]
},
"filesystem": {
"btrfs": {
"snapshots": true
}
},
"size": [1024, "5 Gib"],
"target": "default"
"boot": {
"configure": true,
"device": "/dev/vda"
},
"drives": [
{
"search": {
"name": "/dev/vda"
},
{
"mount": {
"path": "/home"
"ptableType": "gpt",
"partitions": [
{
"search": { "name": "/dev/vda2" },
"format": {
"filesystem": {
"btrfs": {
"snapshots": true
}
}
},
"mount": {
"path": "/",
"options": ["ro"]
}
},
"filesystem": "xfs",
"size": {
"min": "5 GiB",
"max": "20 GiB"
{
"encrypt": {
"password": "notsecret",
"method": "luks2"
},
"format": {
"filesystem": "xfs"
},
"mount": {
"path": "/home"
}
},
"target": {
"newVg": "/dev/vda"
{
"encrypt": {
"password": "notsecret",
"method": "luks2"
},
"format": {
"filesystem": "swap"
},
"mount": {
"path": "swap"
}
}
]
},
{
"search": {
"name": "/dev/vdb"
},
{
"mount": {
"path": "swap"
},
"filesystem": "swap",
"size": "8 GiB",
"target": {
"newPartition": "/dev/vda"
}
"encrypt": {
"password": "notsecret",
"method": "luks2"
},
"format": {
"filesystem": "ext4"
},
"mount": {
"path": "/var/log"
}
]
}
}
]
}
}
}

0 comments on commit 57e5499

Please sign in to comment.