summaryrefslogtreecommitdiff
path: root/roles/installer/debian/usb/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-07-20 22:51:24 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-07-20 22:51:24 +0200
commita367366bfe3397b52b1fa286be8877cd23d2b657 (patch)
tree92947ad5096a378a10cb0347a4d04f5504d7f4a2 /roles/installer/debian/usb/tasks
parentmake debian installer fetch more generic (diff)
simpler pressed initrd handling
Diffstat (limited to 'roles/installer/debian/usb/tasks')
-rw-r--r--roles/installer/debian/usb/tasks/main.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/roles/installer/debian/usb/tasks/main.yml b/roles/installer/debian/usb/tasks/main.yml
index 40846f13..7e603ed6 100644
--- a/roles/installer/debian/usb/tasks/main.yml
+++ b/roles/installer/debian/usb/tasks/main.yml
@@ -28,18 +28,18 @@
state: directory
register: tmpdir
- - name: generate pressed file
+ - name: copy the original initramfs to the usb drive
+ copy:
+ src: "{{ debian_installer_target_dir }}/initrd.gz"
+ dest: "{{ usb_install_path }}/initrd.{{ install_hostname }}.gz"
+
+ - name: generate host specific initial ramdisk
vars:
- preseed_orig_initrd: "{{ debian_installer_target_dir }}/initrd.gz"
+ preseed_initrd: "{{ usb_install_path }}/initrd.{{ install_hostname }}.gz"
preseed_tmpdir: "{{ tmpdir.path }}"
import_role:
name: installer/debian/preseed
- - name: copy the preseed initramfs to the usb drive
- copy:
- src: "{{ tmpdir.path }}/initrd.{{ install_hostname }}.gz"
- dest: "{{ usb_install_path }}/initrd.{{ install_hostname }}.gz"
-
always:
- name: cleanup temporary workdir
when: tmpdir.path is defined