Fix running mkinitcpio in docker

This commit is contained in:
2021-10-03 15:25:35 +02:00
parent 3bb8f8bd56
commit d719481f4d

View File

@@ -523,3 +523,8 @@
- name: rebuild initrd - name: rebuild initrd
command: mkinitcpio -P command: mkinitcpio -P
become: true become: true
register: mkinitcpio_cmd
failed_when: >
mkinitcpio_cmd.rc != 0
and
not (mkinitcpio_cmd.rc == 1 and "file not found: `fsck.overlay'" in mkinitcpio_cmd.stderr)