Files
update/patch-scripts/install-scripts
Heitor Matsui ae6176c10f Reload systemd services on post install script
The stx-10 -> stx-11 enabler patch adds some services related
to the LVM snapshot feature auto-recovery requirement, and while
these services are being correctly added after the patch is
deployed, they aren't being enabled accordingly as they are on
the presets, so this commit adds two instructions to the post
install script to reload the systemd configuration.

Test Plan
PASS: install patch, verify the systemd configuration is updated
PASS: remove patch, verify the systemd configuration is updated

Closes-bug: 2127192

Change-Id: Ib6fc17db10771c1f0219bcd37810d4b97d7a0eed
Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
2025-10-09 11:59:38 -03:00
..
2025-09-24 15:39:28 -04:00
2025-09-24 15:39:28 -04:00

Install Scripts Management

This repository manages pre-install and post-install shell scripts used in the patch deployment process. They run for each patch at the beginning and at the end of software deploy host for both inservice and reboot required patches.

Folder Structure

install-scripts/
├── boilerplate/
│   ├── pre-install.sh
│   └── post-install.sh
├── 24.09.400/
│   ├── pre-install.sh
│   └── post-install.sh
├── examples/
└── ...
  • boilerplate/: Contains the default scripts. These are the standard versions used for most software releases.

  • MM.mm.pp/: Contains version-specific scripts, only when changes are required that differ from the boilerplate.

  • examples/: Contains previous scripts examples. Scripts used in old releases.


Usage

Default Case

If the pre and post install steps remain unchanged:

  • Use the scripts in the boilerplate/ folder.
  • No need to create a version-specific directory.

When Customization Is Needed

If any version of the software requires changes to the install scripts:

  1. Create a version folder (e.g., 24.09.400/):

    mkdir install-scripts/24.09.400
    
  2. Copy the boilerplate scripts:

    cp install-scripts/boilerplate/*.sh start-scripts/24.09.400/
    
  3. Edit the scripts in 24.09.400/ as needed.

Always start from the boilerplate to ensure consistency.


Tips

  • Include comments in versioned scripts, noting what the change is doing.
  • Use previous versions as examples of what these scripts can do.

License

Include the license in all scripts

Copyright (c) 2025 Wind River Systems, Inc.
SPDX-License-Identifier: Apache-2.0