diff options
author | Jonathan Bauer | 2018-08-21 15:56:22 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-08-21 15:56:22 +0200 |
commit | 6d7159854933a8a433425968cfc44486f5ea7ad4 (patch) | |
tree | 40c50a944bc18e383a26d8c4d5ba362c22ae13f2 /slx-builder/tasks/build.yml | |
parent | [slx-builder] introduce tags 'install' and 'build' (diff) | |
download | ansible-dracut-6d7159854933a8a433425968cfc44486f5ea7ad4.tar.gz ansible-dracut-6d7159854933a8a433425968cfc44486f5ea7ad4.tar.xz ansible-dracut-6d7159854933a8a433425968cfc44486f5ea7ad4.zip |
[slx-builder] add missing files
Diffstat (limited to 'slx-builder/tasks/build.yml')
-rw-r--r-- | slx-builder/tasks/build.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/slx-builder/tasks/build.yml b/slx-builder/tasks/build.yml new file mode 100644 index 0000000..aae94c4 --- /dev/null +++ b/slx-builder/tasks/build.yml @@ -0,0 +1,20 @@ +--- +- name: OpenSLX dracut | Build initramfs + shell: "{{ builder_path }} -s -d -p {{ builder_target }} - --add 'kexec-reboot'" + args: + creates: "{{ builder_target }}" + +- name: OpenSLX dracut | Retrieve initramfs and kernel (+ hack for weird /@ prefix of BOOT_IMAGE) + fetch: + src: "{{ item }}" + dest: "{{ playbook_dir }}/boot_files/" + fail_on_missing: yes + flat: yes + with_items: + - "{{ builder_target }}" + - "{{ ansible_cmdline.BOOT_IMAGE | regex_replace('^/@(/boot/.*)+$', '\\1') }}" + +- name: OpenSLX dracut | Cleanup + file: + path: "{{ builder_path | dirname }}" + state: absent |