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