-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(storage): config support for generating physical volumes (#1652)
Add support to the storage config for using a *generate* section for physical volumes. ~~~json "physicalVolumes": [ { "generate": ["first-disk", "second-disk"] } ] ~~~ ~~~json "physicalVolumes": [ { "generate": { "targetDevices": ["first-disk"], "encryption": { "luks2": { "password": "12345" } } } } ] ~~~ The *generate* section allows to indicate the target devices in which to automatically create physical volumes, if needed. Agama will try to create physical volumes to allocate the defined logical volumes. If an *encryption* section is provided by the *generate* section, then the new physical volumes will be encrypted. Notes: * For now, *physicalVolumes* can contain either device aliases or a *generate*. In the future it will allow both. * If there is more than one *generate* in the list of physical volumes, then only the first one will be considered (the rest ones are ignored). Note that the schema does not complain.
- Loading branch information
Showing
41 changed files
with
3,754 additions
and
1,650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"storage": { | ||
"drives": [ | ||
{ | ||
"alias": "first-disk" | ||
}, | ||
{ | ||
"partitions": [ | ||
{ | ||
"alias": "pv1", | ||
"id": "lvm", | ||
"size": { "min": "10 GiB" } | ||
} | ||
] | ||
} | ||
], | ||
"volumeGroups": [ | ||
{ | ||
"name": "system", | ||
"physicalVolumes": ["pv1"], | ||
"logicalVolumes": [ | ||
{ | ||
"filesystem": { "path": "/" } | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "logs", | ||
"physicalVolumes": [ | ||
{ "generate": ["first-disk"] } | ||
] | ||
}, | ||
{ | ||
"name": "data", | ||
"physicalVolumes": [ | ||
{ | ||
"generate": { | ||
"targetDevices": ["first-disk"], | ||
"encryption": { | ||
"luks2": { "password": "12345" } | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.