Skip to content

Commit

Permalink
clean up old Ubuntu initrds
Browse files Browse the repository at this point in the history
for some reason /boot contains both initrds with and without .img
even if the ones with are not used, however, as /boot space is limited
they prevent upgrades of packages, failing our pipelines

delete them

we don't really care about new kernels, or rebooting those VMs, but we
care about updated userland, and this prevents it
  • Loading branch information
evgeni committed Jan 26, 2024
1 parent b06a0ae commit bac0f20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/vagrant_workarounds/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
vtype: boolean
when:
- ansible_os_family == 'Debian'

- name: clean up old Ubuntu initrds
shell: rm -f /boot/*-generic.img
when:
- ansible_os_family == 'Debian'

0 comments on commit bac0f20

Please sign in to comment.