Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage AutoYaST backward compatibility #1266

Closed

Conversation

joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented May 28, 2024

Agama is going to offer new settings for configuring the storage devices, see #1256. That new settings will be applied by loading a config file (e.g., $ agama config load myconfig.json). Nevertheless, Agama is also going to temporary support the SLE15 AutoYaST schema to some extent, in order to make the transition smoother. For that, the json config file can indicate a "legacyAutoyastStorage" key equivalent to the partitioning section of the AutoYaST profile:

"legacyAutoyastStorage": [
  {
    "device": "/dev/vda",
    "use": "all",
    "partitions": [...]
  }
]

This PR implements the support for the "legacyAutoyastStorage" settings, making possible to calculate an AutoYaST proposal. Converting the "partitioning" section from a XML AutoYaST profile to a "legacyAutoyastStorage" section of a json config file is out of the scope and it will be addressed in a follow-up.

Note: The AutoYaST guided partitioning will not be supported, see https://doc.opensuse.org/projects/autoyast/#CreateProfile-Guided-Partitioning.

@joseivanlopez joseivanlopez force-pushed the legacy-autoyast-support branch 2 times, most recently from bd98779 to 4d78af5 Compare May 29, 2024 14:22
@coveralls
Copy link

coveralls commented May 29, 2024

Coverage Status

coverage: 70.241% (-0.04%) from 70.281%
when pulling 2d64072 on joseivanlopez:legacy-autoyast-support
into e2c7a5a on openSUSE:master.

@ancorgs
Copy link
Contributor

ancorgs commented Jun 4, 2024

Closed in favor of #1284 (same content but cleaner history)

ancorgs added a commit that referenced this pull request Jun 6, 2024
Created to replace #1266 (to sanitize history).

Agama is going to offer new settings for configuring the storage
devices, see #1256. That new
settings will be applied by loading a config file (e.g., `$ agama config
load myconfig.json`). Nevertheless, Agama is also going to temporary
support the SLE15 AutoYaST schema to some extent, in order to make the
transition smoother. For that, the json config file can indicate a
"legacyAutoyastStorage" key equivalent to the partitioning section of
the AutoYaST profile:

~~~
"legacyAutoyastStorage": [
  {
    "device": "/dev/vda",
    "use": "all",
    "partitions": [...]
  }
]
~~~ 

This PR implements the support for the "legacyAutoyastStorage" settings,
making possible to calculate an AutoYaST proposal.

Converting the "partitioning" section from a XML AutoYaST profile to a
"legacyAutoyastStorage" section is implemented at
#1285

Note: The AutoYaST guided partitioning will not be supported, see
https://doc.opensuse.org/projects/autoyast/#CreateProfile-Guided-Partitioning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants