diff --git a/cloud-init-power-rhel-only.patch b/cloud-init-power-rhel-only.patch new file mode 100644 index 0000000..fbdc2cf --- /dev/null +++ b/cloud-init-power-rhel-only.patch @@ -0,0 +1,11 @@ +--- cloudinit/config/cc_refresh_rmc_and_interface.py.orig ++++ cloudinit/config/cc_refresh_rmc_and_interface.py +@@ -42,7 +42,7 @@ meta: MetaSchema = { + "name": "Refresh IPv6 Interface and RMC", + "title": "Ensure Network Manager is not managing IPv6 interface", + "description": MODULE_DESCRIPTION, +- "distros": [ALL_DISTROS], ++ "distros": ["fedora", "rhel"], + "frequency": PER_ALWAYS, + "examples": [], + "activate_by_schema_keys": [], diff --git a/cloud-init.changes b/cloud-init.changes index ac3baa7..a2c93a2 100644 --- a/cloud-init.changes +++ b/cloud-init.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Apr 27 12:22:11 UTC 2023 - Robert Schweikert + +- Add cloud-init-power-rhel-only.patch (bsc#1210273) + + Config module cc_refresh_rmc_and_interface is implemented such that + it will only work on RH distros. Set the module availability accordingly. + ------------------------------------------------------------------- Thu Feb 23 13:38:43 UTC 2023 - Robert Schweikert diff --git a/cloud-init.spec b/cloud-init.spec index 16867fa..28ff66b 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -37,6 +37,8 @@ Patch4: cloud-init-no-tempnet-oci.patch Patch5: cloud-init-fix-ca-test.patch # FIXME (lp#1812117) Patch6: cloud-init-write-routes.patch +# FIXME https://github.com/canonical/cloud-init/pull/2148 +Patch7: cloud-init-power-rhel-only.patch BuildRequires: fdupes BuildRequires: filesystem # pkg-config is needed to find correct systemd unit dir @@ -141,6 +143,7 @@ Documentation and examples for cloud-init tools %patch4 %patch5 %patch6 +%patch7 # patch in the full version to version.py version_pys=$(find . -name version.py -type f)