Skip to content

Commit 6d1faf3

Browse files
committed
adds initramfs rebuild for ubuntu in localdisk
1 parent 4d417e6 commit 6d1faf3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

playbooks/roles/localdisk/tasks/common.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,8 @@
9494
recurse: no
9595
when:
9696
- one_lv | bool
97-
- lv_count.stdout == '0'
97+
- lv_count.stdout == '0'
98+
99+
- name: rebuild initramfs if ubuntu
100+
shell: update-initramfs -k all -u
101+
when: ansible_facts['distribution'] == "Ubuntu"

0 commit comments

Comments
 (0)