Skip to content

Commit beccf0e

Browse files
authored
Merge pull request #1812 from kreeuwijk/patch-2
Exclude grub packages from apt-mark hold
2 parents 15c3fe5 + c6ece0d commit beccf0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

images/capi/ansible/roles/sysprep/tasks/debian.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
args:
2626
executable: /bin/bash
2727

28+
- name: Unpin grub packages with apt-mark for MaaS
29+
ansible.builtin.shell: |
30+
set -o pipefail
31+
dpkg-query -f '${binary:Package}\n' -W | grep grub | xargs apt-mark unhold
32+
33+
args:
34+
executable: /bin/bash
35+
when: provider is defined and provider is search('maas')
36+
2837
- name: Remove extra repos
2938
ansible.builtin.file:
3039
path: /etc/apt/sources.list.d/{{ item | basename }}

0 commit comments

Comments
 (0)