Skip to content

Commit

Permalink
unprotect grub2-tools-minimal before purging foreman
Browse files Browse the repository at this point in the history
grub2-tools-minimal gets installed when we install cockpit, and
uninstalling foreman tries to uninstall grub2-tools-minimal as there are
no more dependencies on it, but that fails as it's a protected package

given this is only a test setup in a container, we don't care about grub
at all and can safely purge it again
  • Loading branch information
evgeni committed Jan 24, 2025
1 parent 758500e commit 89565c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/acceptance/purge.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
def purge_foreman
case fact('osfamily')
when 'RedHat'
on default, 'rm -f /etc/dnf/protected.d/grub2-tools-minimal.conf'
on default, 'yum -y remove foreman*'
when 'Debian'
on default, 'apt-get purge -y foreman*', { :acceptable_exit_codes => [0, 100] }
Expand Down

0 comments on commit 89565c3

Please sign in to comment.