Fix Debian EFI mount layout

This commit is contained in:
2025-12-27 23:49:21 +01:00
parent 0211efbae7
commit 2c23ce6cbb
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
vars: vars:
configuration_use_efibootmgr: "{{ is_rhel | default(false) }}" configuration_use_efibootmgr: "{{ is_rhel | default(false) }}"
configuration_efi_dir: >- configuration_efi_dir: >-
{{ "/boot/efi" if os | lower in ["ubuntu", "ubuntu-lts"] else "/boot" }} {{ "/boot/efi" if (is_debian | default(false) or is_rhel | default(false)) else "/boot" }}
configuration_bootloader_id: >- configuration_bootloader_id: >-
{{ "ubuntu" if os | lower in ["ubuntu", "ubuntu-lts"] else os }} {{ "ubuntu" if os | lower in ["ubuntu", "ubuntu-lts"] else os }}
configuration_efi_vendor: >- configuration_efi_vendor: >-

View File

@@ -492,7 +492,7 @@
- name: Mount boot filesystem - name: Mount boot filesystem
ansible.posix.mount: ansible.posix.mount:
path: "{{ '/mnt/boot/efi' if os | lower in ['rhel8', 'ubuntu', 'ubuntu-lts'] else '/mnt/boot' }}" path: "{{ '/mnt/boot/efi' if (is_debian | default(false) or is_rhel | default(false)) else '/mnt/boot' }}"
src: UUID={{ partitioning_boot_uuid.stdout }} src: UUID={{ partitioning_boot_uuid.stdout }}
fstype: vfat fstype: vfat
state: mounted state: mounted