Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Jul 16, 2024
1 parent d81a22b commit ca265ae
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 56 deletions.
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"
}
]
}
}
]
}
}
}
7 changes: 5 additions & 2 deletions rust/agama-lib/share/profile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,11 @@
},
"legacyAutoyastStorage": {
"title": "Legacy AutoYaST storage settings",
"description": "Accepts all options of the AutoYaST profile (XML to JSON)",
"type": "object"
"description": "Accepts all options of the AutoYaST partitioning section (XML to JSON)",
"type": "array",
"items": {
"type": "object"
}
}
},
"$defs": {
Expand Down

0 comments on commit ca265ae

Please sign in to comment.