|
|
@@ -1,22 +1,28 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- name: copy linux kernel |
|
|
|
copy: src=/usr/lib/debian-installer/images/8/amd64/text/debian-installer/amd64/linux dest={{installer_directory}}/linux remote_src=true |
|
|
|
copy: |
|
|
|
src: /usr/lib/debian-installer/images/8/amd64/text/debian-installer/amd64/linux |
|
|
|
dest: {{installer_directory}}/linux remote_src=true |
|
|
|
|
|
|
|
- name: copy initrd for customization |
|
|
|
shell: gunzip -c /usr/lib/debian-installer/images/8/amd64/text/debian-installer/amd64/initrd.gz > {{installer_directory}}/initrd |
|
|
|
shell: gunzip -c |
|
|
|
/usr/lib/debian-installer/images/8/amd64/text/debian-installer/amd64/initrd.gz |
|
|
|
> {{installer_directory}}/initrd |
|
|
|
|
|
|
|
- name: insert files into initrd |
|
|
|
shell: echo {{item}} | cpio --create --format=newc --append --file=initrd |
|
|
|
args: |
|
|
|
chdir: "{{installer_directory}}/" |
|
|
|
chdir: "{{installer_directory}}" |
|
|
|
with_items: |
|
|
|
- preseed.cfg |
|
|
|
- run.sh |
|
|
|
- preseed.cfg |
|
|
|
- run.sh |
|
|
|
|
|
|
|
- name: compress custom initrd |
|
|
|
command: gzip -f {{installer_directory}}/initrd |
|
|
|
|
|
|
|
- name: merge initrd.gz and firmware.cpio.gz |
|
|
|
shell: cat /usr/lib/debian-installer/images/8/amd64/text/debian-installer/firmware.cpio.gz >> {{installer_directory}}/initrd.gz |
|
|
|
shell: cat |
|
|
|
/usr/lib/debian-installer/images/8/amd64/text/debian-installer/firmware.cpio.gz |
|
|
|
>> {{installer_directory}}/initrd.gz |
|
|
|
when: nonfree_firmware |