Fix Debian initramfs regeneration
This commit is contained in:
@@ -76,7 +76,6 @@ bootstrap_debian11:
|
|||||||
- grub2-common
|
- grub2-common
|
||||||
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
||||||
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
||||||
- initramfs-tools
|
|
||||||
- linux-image-amd64
|
- linux-image-amd64
|
||||||
- locales
|
- locales
|
||||||
- logrotate
|
- logrotate
|
||||||
@@ -127,7 +126,6 @@ bootstrap_debian12:
|
|||||||
- grub2-common
|
- grub2-common
|
||||||
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
||||||
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
||||||
- initramfs-tools
|
|
||||||
- linux-image-amd64
|
- linux-image-amd64
|
||||||
- locales
|
- locales
|
||||||
- logrotate
|
- logrotate
|
||||||
@@ -183,7 +181,6 @@ bootstrap_debian13:
|
|||||||
- grub2-common
|
- grub2-common
|
||||||
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
||||||
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
||||||
- initramfs-tools
|
|
||||||
- linux-image-amd64
|
- linux-image-amd64
|
||||||
- locales
|
- locales
|
||||||
- logrotate
|
- logrotate
|
||||||
@@ -380,7 +377,6 @@ bootstrap_ubuntu:
|
|||||||
- grub2-common
|
- grub2-common
|
||||||
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
||||||
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
||||||
- initramfs-tools
|
|
||||||
- linux-image-generic
|
- linux-image-generic
|
||||||
- locales
|
- locales
|
||||||
- lvm2
|
- lvm2
|
||||||
@@ -444,7 +440,6 @@ bootstrap_ubuntu_lts:
|
|||||||
- grub2-common
|
- grub2-common
|
||||||
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup' if luks_enabled | default(false) else '' }}"
|
||||||
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
- "{{ 'cryptsetup-initramfs' if luks_enabled | default(false) else '' }}"
|
||||||
- initramfs-tools
|
|
||||||
- linux-image-generic
|
- linux-image-generic
|
||||||
- locales
|
- locales
|
||||||
- lvm2
|
- lvm2
|
||||||
|
|||||||
@@ -38,7 +38,8 @@
|
|||||||
'/usr/sbin/mkinitcpio -P'
|
'/usr/sbin/mkinitcpio -P'
|
||||||
if os | lower == "archlinux"
|
if os | lower == "archlinux"
|
||||||
else (
|
else (
|
||||||
'/usr/sbin/update-initramfs -u -k all'
|
'/usr/bin/env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin '
|
||||||
|
+ '/usr/sbin/update-initramfs -u -k all'
|
||||||
if is_debian | default(false)
|
if is_debian | default(false)
|
||||||
else '/usr/bin/dracut --regenerate-all --force'
|
else '/usr/bin/dracut --regenerate-all --force'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user