Files
update/software/upgrade-scripts/04-remove-out-of-tree-service-parameter.py
Rahul Roshan Kachchap ea2dc1f4f8 Removing out_of_tree_drivers param during upgrade
Scenarios:
1. Upgrade from stx.10 → stx.11 → stx.12
During the upgrade to stx.11, both the service parameter and the
boot parameter were already removed. Therefore, no additional
handling is required during the upgrade to stx.12 or during
rollback to stx.11.

2. Fresh install on stx.11
In a fresh stx.11 installation, the service and boot parameters
are added, but they are redundant and unused. Even without these
parameters, the system uses out-of-tree drivers by default in
both stx.11 and stx.12. When upgrading from a fresh stx.11
installation to stx.12, the upgrade script must remove these
redundant parameters. However, no rollback hook is required because
these parameters have no impact on the running system and do not
need to be re-added.

This commit addresses only the stx.11 → stx.12 upgrade scenario
for fresh stx.11 installs.

Added migrate script that:
 - Removes the out_of_tree_drivers service parameter
   from sysinv DB.

Added an upgrade hook that:
 - Removes out-of-tree-drivers kernel parameter during upgrade

TestPlan:
PASS: build-pkgs -c -p software
PASS: build-image
PASS: bootstrap
PASS: AIO-SX
      - After deploy-activate validated no out_of_tree_drivers
        service parameter exists
      - After delpoy-activate, validated no out-of-tree-drivers
        kernel parameter exists
      -  After rollback, validated no out_of_tree_drivers
        service parameter were added
      - After rollback, validated no out-of-tree-drivers
        kernel parameter were added

Story: 2011606
Task: 53198

Change-Id: Iafc62e9a2eb0a76c5fc022e4936a699e57407091
Signed-off-by: Rahul Roshan Kachchap <rahulroshan.kachchap@windriver.com>
2025-12-01 00:32:57 -05:00

3.1 KiB