Fix the type used for 'partition' elements #650
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
As reported in https://bugzilla.suse.com/show_bug.cgi?id=1174071, the AutoYaST profile validation started failing with
ERROR: Element profile failed to validate content
.Click to show/hide an screenshot
This happens because
partition
elements in theautoinst.xml
profile have thet="map"
attribute but it is currently missing in the schema.Maybe related to #598
Solution
To update the
partitioning.rnc
file, setting theMAP
type to thepartition
element.Tests
During the installation, via driver update
Build both packages, yast-autoinstallation and yast-schema using the
--keep-pkgs
and--prefer-pkgs
osc optionsCreate a driver update
Run the installation using the driver udpate and AutoYaST profile
The profile validations works fine and the auto installation could continue
Click to show/hide an screenshot
Manually, runing the xmllint validation locally
I have tested this change manually, as described bellow
Run the installation with the provided AutoYaST profile.
Copy the `/tmp/YaST2-temporary-directory/autoinst.xml file to a local machine
Execute the validation locally
Apply suggested changes, build the package and re-install it using the new
rpm
fileRe-build the yast2-schema manually
Check that /usr/share/YaST2/schema/autoyast/rng/partitioning.rng has changed
Execute the validation again