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 nameversionrevision to identify correct image and --host with API credentials to access SUMA/Uyuni API.
Operating modes are:
rpm - Use --rpm <path> to update an initrd from the image with the content from the provided rpm or if path is a directory, from all rpms present.
revert - Use --revert <initrd> to revert to the specified initrd. This will replace active initrd with the one specified and update all needed metadata.
clear - Use --clear flag to trigger purge of backed up initrds and leave only the active one.
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:
All commands require image
name
version
revision
to identify correct image and--host
with API credentials to access SUMA/Uyuni API.Operating modes are:
rpm
- Use--rpm <path>
to update an initrd from the image with the content from the provided rpm or ifpath
is a directory, from all rpms present.revert
- Use--revert <initrd>
to revert to the specified initrd. This will replace active initrd with the one specified and update all needed metadata.clear
- Use--clear
flag to trigger purge of backed up initrds and leave only the active one.