Files
root/build-tools/stx/patch/config/patch-recipe-schema.xsd
Leonardo Fagundes Luz Serrano 12b22ae15f patch-builder: Flag for adding precheck scripts
Currently, if the patching framework deb package (software.deb)
is one of the pkgs selected for the patch, patch-builder will
also extract a couple scripts (refered to here as 'precheck scripts')
and put them in the separatly in the patch for easier access.

The issue is that, if we create a patch that delivers an ostree repo
instead of a set of deb packages, then auto-inclusion of the
precheck scripts will never happen.

Added a Y/N flag the user can add in the patch XML (similar to the
reboot_required flag) to request inclusion of the precheck scripts.

Test Plan:
pass - flag is not mandatory
pass - if 'Y' regardless of debs requested, scripts are included
pass - if 'N', scripts are included only if software.deb is requested

Story: 2011498
Task: 52900

Change-Id: Ic9866bcd251bfe6f27ce4b60be604beccb815183
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
2025-10-09 17:36:09 +00:00

59 lines
2.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="patch_recipe">
<xs:complexType>
<xs:all>
<xs:element name="sw_version" type="xs:string"/>
<xs:element name="component" type="xs:string"/>
<xs:element name="summary" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="install_instructions" type="xs:string"/>
<xs:element name="warnings" type="xs:string"/>
<xs:element name="reboot_required" type="xs:string"/>
<xs:element name="unremovable" type="xs:string"/>
<xs:element name="status" type="xs:string"/>
<xs:element name="requires">
<xs:complexType>
<xs:sequence>
<xs:element name="id" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="semantics" type="xs:string"/>
<xs:element name="precheck_scripts" type="xs:string" minOccurs="0"/>
<xs:element name="pre_start" type="xs:string" minOccurs="0"/>
<xs:element name="post_start" type="xs:string" minOccurs="0"/>
<xs:element name="pre_install" type="xs:string" minOccurs="0"/>
<xs:element name="post_install" type="xs:string" minOccurs="0"/>
<xs:element name="activation_scripts" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="script" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="extra_content" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="item" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stx_packages">
<xs:complexType>
<xs:sequence>
<xs:element name="package" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="binary_packages">
<xs:complexType>
<xs:sequence>
<xs:element name="package" type="xs:string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>