From c2b8b79dd87a292544fc9fc917b98c754f4b8ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Iv=C3=A1n=20L=C3=B3pez=20Gonz=C3=A1lez?= Date: Wed, 28 Aug 2024 13:21:44 +0100 Subject: [PATCH] WIP --- doc/auto_storage.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/doc/auto_storage.md b/doc/auto_storage.md index 5923c21589..93ad98e72f 100644 --- a/doc/auto_storage.md +++ b/doc/auto_storage.md @@ -7,14 +7,15 @@ installation. AutoYaST profiles can be used with Agama offering a 100% backward compatibility. -The `legacyAutoyastStorage` section of the Agama profile is a 1:1 representation of the XML specification of AutoYaST. No JSON validation will be performed for it. +The `legacyAutoyastStorage` section of the Agama profile is a 1:1 representation of the XML +specification of AutoYaST. No JSON validation will be performed for it. ~~~json { "legacyAutoyastStorage": [ { "use": "all", - "partitions": [...] + "partitions": [] } ] } @@ -63,7 +64,8 @@ This could seem a minor detail, but it has several implications: #### Directly Formatting Devices is Hammered -A `` section is still needed for directly formatting a device, which shows the abuse of the schema. +A `` section is still needed for directly formatting a device, which shows the abuse of +the schema. ~~~xml @@ -80,7 +82,9 @@ A `` section is still needed for directly formatting a device, which #### Selecting Devices is Difficult and Limited -The AutoYaST schema allows selecting specific devices by using the `` property. This forces to use inverse logic when looking for a device. For example, if you want to select a disk bigger than 1 GiB, then you have to skip the smaller disks: +The AutoYaST schema allows selecting specific devices by using the `` property. This +forces to use inverse logic when looking for a device. For example, if you want to select a disk +bigger than 1 GiB, then you have to skip the smaller disks: ~~~xml @@ -97,7 +101,8 @@ The AutoYaST schema allows selecting specific devices by using the `` ~~~ -The partitions to remove are selected by means of the `` property, which is very limited. It only allows removing everything, nothing, specific partition numbers or linux partitions. +The partitions to remove are selected by means of the `` property, which is very limited. It +only allows removing everything, nothing, specific partition numbers or linux partitions. ~~~xml @@ -111,7 +116,8 @@ The partitions to remove are selected by means of the `` property, which is ~~~ -The property `` is used for reusing a partition. And again, this option is very limited, allowing selecting a partition only by its number. +The property `` is used for reusing a partition. And again, this option is very +limited, allowing selecting a partition only by its number. ~~~xml @@ -130,7 +136,9 @@ Note that you could indicate the same partition number for deleting (``) an #### Devices Are Created in a Indirect Way -For creating new LVM volume groups, RAIDS, etc, it is necessary to indicate what devices to use as logical volumes or as RAID members. In AutoYaST, the partitions have to indicate the device they are going to be used by. +For creating new LVM volume groups, RAIDS, etc, it is necessary to indicate what devices to use as +logical volumes or as RAID members. In AutoYaST, the partitions have to indicate the device they are +going to be used by. ~~~xml @@ -160,7 +168,8 @@ It would be more natural to indicate the used devices directly in the RAID or lo ## The New Storage Schema -Agama offers its own storage schema which is more semantic, comprehensive and flexible than the AutoYaST one. +Agama offers its own storage schema which is more semantic, comprehensive and flexible than the +AutoYaST one. The new schema allows: @@ -168,7 +177,10 @@ The new schema allows: * To perform more advanced searches for disks, partitions, etc. * To indicate deleting and resizing on demand. -The Agama schema is used by a new Agama specific proposal. This decouples the algorithm from the AutoYaST one, making much easier to support new use cases and avoiding backward compatibility with fringe AutoYaST scenarios. It also supports some features that are not available in the AutoYaST proposal like deleting or resizing partitions on demand. +The Agama schema is used by a new Agama specific proposal. This decouples the algorithm from the +AutoYaST one, making much easier to support new use cases and avoiding backward compatibility with +fringe AutoYaST scenarios. It also supports some features that are not available in the AutoYaST +proposal like deleting or resizing partitions on demand. ### Basic Structure of the Storage Section