diff --git a/service/lib/tasks/autoyast.rb b/service/lib/tasks/autoyast.rb index e4cea89393..7a01846dd3 100644 --- a/service/lib/tasks/autoyast.rb +++ b/service/lib/tasks/autoyast.rb @@ -39,12 +39,16 @@ def generate lines = ["# AutoYaST compatibility reference"] top_level = description.elements.select(&:top_level?) + .sort_by(&:short_key) + unsupported, rest = top_level.partition { |e| e.support == :no } - top_level.each do |e| + rest.each do |e| lines.concat(section(e)) end lines.join("\n") + + lines.concat(unsupported_elements(unsupported)) end private @@ -86,6 +90,20 @@ def elements_table(elements) lines end + def unsupported_elements(elements) + lines = [] + lines << "## Unsupported sections" + lines << "" + lines << "The following sections are not supported and there are no plans to " \ + "support them in the future." + lines << "" + elements.each_with_object(lines) do |e, all| + line = "* `#{e.short_key}`" + line << ": #{e.notes}" if e.notes + all << line + end + end + # Generates the notes for a given element. # # @param element [ProfileElement] Profile element to generate the notes for diff --git a/service/share/autoyast-compat.json b/service/share/autoyast-compat.json index 0e8ef83e7d..028755f74f 100644 --- a/service/share/autoyast-compat.json +++ b/service/share/autoyast-compat.json @@ -14,6 +14,7 @@ { "key": "groups", "support": "no" }, { "key": "host", "support": "no" }, { "key": "http-server", "support": "no" }, + { "key": "kdump", "support": "planned" }, { "key": "keyboard", "children": [