Skip to content

Commit 89565c3

Browse files
committed
unprotect grub2-tools-minimal before purging foreman
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
1 parent 758500e commit 89565c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/support/acceptance/purge.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
def purge_foreman
22
case fact('osfamily')
33
when 'RedHat'
4+
on default, 'rm -f /etc/dnf/protected.d/grub2-tools-minimal.conf'
45
on default, 'yum -y remove foreman*'
56
when 'Debian'
67
on default, 'apt-get purge -y foreman*', { :acceptable_exit_codes => [0, 100] }

0 commit comments

Comments
 (0)