uyuni-project / contrib

Collection of tools that are are not (yet!) officially part of the Uyuni product
8 stars 5 forks source link

Add naive initrd updater #22

Closed aaannz closed 4 months ago

aaannz commented 8 months ago

This PR adds a script to naively update existing initrd with data from an RPM.

Script only overwrites data from the RPM, does not run any %post hooks, etc. Cannot be used if there is any logic in the scriptlets involved.

Usage:

initrd-rpm-update.py [-h] --host HOST [--api-user API_USER]
                            [--api-pass API_PASS] [--rpm RPM]
                            [--revert REVERT] [--clear]
                            name version revision

All commands require image name version revision to identify correct image and --host with API credentials to access SUMA/Uyuni API.

Operating modes are: