fix issue
This commit is contained in:
parent
d80023e845
commit
c033aa536a
@ -17,7 +17,7 @@
|
|||||||
- name: create partition
|
- name: create partition
|
||||||
parted:
|
parted:
|
||||||
device: "{{ item.0.device }}"
|
device: "{{ item.0.device }}"
|
||||||
label: "{% if provissionning_UEFI_Enable == True %}GPT{% else %}msdos{% endif %}"
|
label: "{% if provissionning_UEFI_Enable == True %}gpt{% else %}msdos{% endif %}"
|
||||||
number: "{{ item.1.number }}"
|
number: "{{ item.1.number }}"
|
||||||
part_start: "{{ item.1.part_start | default('0%') }}"
|
part_start: "{{ item.1.part_start | default('0%') }}"
|
||||||
part_end: "{{ item.1.part_end | default('100%') }}"
|
part_end: "{{ item.1.part_end | default('100%') }}"
|
||||||
@ -100,9 +100,9 @@
|
|||||||
|
|
||||||
- name: Install legacy grub
|
- name: Install legacy grub
|
||||||
command: "arch-chroot /mnt grub-install {{ item.0.device }} "
|
command: "arch-chroot /mnt grub-install {{ item.0.device }} "
|
||||||
when: provissionning_UEFI_Enable == False
|
|
||||||
loop: '{{ mount_table|subelements("settings") }}'
|
loop: '{{ mount_table|subelements("settings") }}'
|
||||||
when: item.1.mountpath == "/mnt/boot"
|
when: item.1.mountpath == "/mnt/boot" and provissionning_UEFI_Enable == False
|
||||||
|
|
||||||
|
|
||||||
- name: Create grub config
|
- name: Create grub config
|
||||||
command: arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
|
command: arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
Loading…
Reference in New Issue
Block a user