Limit enabling powertools to the hotfixes package; use %posttrans not %post
Using %posttrans rather than %post ensures that the repo does not get enabled mid-transaction
Also, limit this to hotfixes as it is the one that pulls in EPEL and so might need PowerTools
```
[vagrant@localhost ~]$ dnf repolist enabled
repo id repo name
appstream CentOS Stream 8 - AppStream
baseos CentOS Stream 8 - BaseOS
centos-hyperscale CentOS Stream 8 - Hyperscale
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
extras CentOS Stream 8 - Extras
[vagrant@localhost ~]$ sudo dnf install /vagrant/centos-release-hyperscale-4-3.el8.noarch.rpm
Last metadata expiration check: 0:18:44 ago on Thu 20 May 2021 12:56:48 AM UTC.
Dependencies resolved.
=============================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================
Upgrading:
centos-release-hyperscale noarch 4-3.el8 @commandline 9.6 k
Transaction Summary
=============================================================================================================================================================================================
Upgrade 1 Package
Total size: 9.6 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Upgrading : centos-release-hyperscale-4-3.el8.noarch 1/2
Cleanup : centos-release-hyperscale-4-1.el8.noarch 2/2
Verifying : centos-release-hyperscale-4-3.el8.noarch 1/2
Verifying : centos-release-hyperscale-4-1.el8.noarch 2/2
Upgraded:
centos-release-hyperscale-4-3.el8.noarch
Complete!
[vagrant@localhost ~]$ dnf repolist enabled
repo id repo name
appstream CentOS Stream 8 - AppStream
baseos CentOS Stream 8 - BaseOS
centos-hyperscale CentOS Stream 8 - Hyperscale
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
extras CentOS Stream 8 - Extras
[vagrant@localhost ~]$ sudo dnf install /vagrant/centos-release-hyperscale-hotfixes-4-3.el8.noarch.rpm
Last metadata expiration check: 0:18:53 ago on Thu 20 May 2021 12:56:48 AM UTC.
Dependencies resolved.
=============================================================================================================================================================================================
Package Architecture Version Repository Size
=============================================================================================================================================================================================
Installing:
centos-release-hyperscale-hotfixes noarch 4-3.el8 @commandline 8.4 k
Transaction Summary
=============================================================================================================================================================================================
Install 1 Package
Total size: 8.4 k
Installed size: 386
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : centos-release-hyperscale-hotfixes-4-3.el8.noarch 1/1
Running scriptlet: centos-release-hyperscale-hotfixes-4-3.el8.noarch 1/1
Verifying : centos-release-hyperscale-hotfixes-4-3.el8.noarch 1/1
Installed:
centos-release-hyperscale-hotfixes-4-3.el8.noarch
Complete!
[vagrant@localhost ~]$ dnf repolist enabled
repo id repo name
appstream CentOS Stream 8 - AppStream
baseos CentOS Stream 8 - BaseOS
centos-hyperscale CentOS Stream 8 - Hyperscale
centos-hyperscale-hotfixes CentOS Stream 8 - Hyperscale Hotfixes
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
extras CentOS Stream 8 - Extras
powertools CentOS Stream 8 - PowerTools
```
Signed-off-by: Michel Alexandre Salim <salimma@centosproject.org>