
Builds ephemeral ISO and target host images. Also replaces isogen (iso-builder) with a single ansible-driven build tool for both types of airship images used: ephemeral ISO as well as target QCOW2 images deployed to base nodes. Change-Id: I6d0368de771869e4e645a03d8a20f470b34602ab
17 lines
671 B
YAML
17 lines
671 B
YAML
- name: "QCOW | copy ansible playbooks to target image"
|
|
shell: |
|
|
set -e
|
|
cp -r /opt/assets "{{ root_chroot }}"/opt
|
|
|
|
- name: "QCOW | unmount target"
|
|
shell: |
|
|
set -e
|
|
# restore resolv.conf
|
|
chroot "{{ root_chroot }}" /bin/bash -c 'rm /etc/resolv.conf; cd /etc; ln -s ../run/systemd/resolve/stub-resolv.conf resolv.conf'
|
|
cd "{{ root_chroot }}"
|
|
mountpoint dev/pts > /dev/null && umount dev/pts
|
|
mountpoint dev > /dev/null && umount dev
|
|
mountpoint sys/firmware/efi > /dev/null && umount sys/firmware/efi
|
|
mountpoint sys > /dev/null && umount sys
|
|
mountpoint proc > /dev/null && umount proc
|