From a367366bfe3397b52b1fa286be8877cd23d2b657 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 20 Jul 2020 22:51:24 +0200 Subject: simpler pressed initrd handling --- roles/installer/debian/preseed/tasks/main.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'roles/installer/debian/preseed/tasks') diff --git a/roles/installer/debian/preseed/tasks/main.yml b/roles/installer/debian/preseed/tasks/main.yml index 49d08c8b..3c45001f 100644 --- a/roles/installer/debian/preseed/tasks/main.yml +++ b/roles/installer/debian/preseed/tasks/main.yml @@ -1,10 +1,4 @@ --- -- name: Copy initramfs into position - copy: - remote_src: yes - src: "{{ preseed_orig_initrd }}" - dest: "{{ preseed_tmpdir }}/initrd.{{ install_hostname }}.gz" - - name: Generate preseed file template: src: "preseed_{{ hostvars[install_hostname].preseed_template_name | default(install_distro + '-' + install_codename) }}.cfg.j2" @@ -42,7 +36,7 @@ NamePolicy={{ preseed_force_net_ifnames_policy }} - name: Inject files into initramfs - shell: cpio -H newc -o | gzip -9 >> 'initrd.{{ install_hostname }}.gz' + shell: cpio -H newc -o | gzip -9 >> '{{ preseed_initrd }}' args: chdir: "{{ preseed_tmpdir }}" stdin: | -- cgit v1.2.3