Skip to content

Commit

Permalink
schema: declarative version
Browse files Browse the repository at this point in the history
- Adapt to new agreed format.
  • Loading branch information
joseivanlopez committed Jul 25, 2024
1 parent 24769bb commit 9154144
Show file tree
Hide file tree
Showing 2 changed files with 274 additions and 226 deletions.
56 changes: 22 additions & 34 deletions rust/agama-lib/share/examples/storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,36 @@
"partitions": [
{
"search": { "name": "/dev/vda2" },
"format": {
"filesystem": {
"btrfs": {
"snapshots": true
}
}
},
"mount": {
"filesystem": {
"reuse": false,
"type": "btrfs",
"btrfsOptions": {
"snapshots": true
},
"path": "/",
"options": ["ro"]
"mountOptions": ["ro"]
}
},
{
"create": {
"id": "linux",
"size": "10 GiB"
},
"encrypt": {
"password": "notsecret",
"id": "linux",
"size": "10 GiB",
"encryption": {
"key": "notsecret",
"method": "luks2"
},
"format": {
"filesystem": "xfs"
},
"mount": {
"filesystem": {
"type": "xfs",
"path": "/home"
}
},
{
"create": {
"size": "2 GiB"
},
"encrypt": {
"password": "notsecret",
"size": "2 GiB",
"encryption": {
"key": "notsecret",
"method": "luks2"
},
"format": {
"filesystem": "swap"
},
"mount": {
"filesystem": {
"type": "swap",
"path": "swap"
}
}
Expand All @@ -62,14 +52,12 @@
"search": {
"name": "/dev/vdb"
},
"encrypt": {
"password": "notsecret",
"encryption": {
"key": "notsecret",
"method": "luks2"
},
"format": {
"filesystem": "ext4"
},
"mount": {
"filesystem": {
"type": "ext4",
"path": "/var/log"
}
}
Expand Down
Loading

0 comments on commit 9154144

Please sign in to comment.