Fix mount failure during installation (preseed/late_command).

This commit is contained in:
Andreas B. Mundt 2022-07-06 17:37:46 +02:00 committed by Andreas B. Mundt
parent c7f7977622
commit e99732634e

View file

@ -24,6 +24,19 @@
state: mounted state: mounted
loop: loop:
"{{ live_images }}" "{{ live_images }}"
when: not run_in_installer|default(false)|bool
notify: rebuild di-netboot menu
- name: loop mount iso images after reboot
mount:
path: "/var/lib/tftpboot/d-i/n-live/{{ item.name }}"
src: "/var/cache/di-netboot-assistant/{{ item.iso }}"
fstype: iso9660
opts: loop,ro,nofail
state: present
loop:
"{{ live_images }}"
when: run_in_installer|default(false)|bool
notify: rebuild di-netboot menu notify: rebuild di-netboot menu
- name: prepare http downloads - name: prepare http downloads