summaryrefslogtreecommitdiff
path: root/roles/create-iso
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2021-06-28 12:57:35 +0200
committerGitHub <noreply@github.com>2021-06-28 12:57:35 +0200
commitb077c2942620581bdb519e6584a40cb383a841e0 (patch)
tree5d9e98c1be886bb2bf9bc3d9da676c78caa90fda /roles/create-iso
parente0ad618192bd652f7a26ed4f34265d4f7de9c45b (diff)
downloadvyos-vm-images-b077c2942620581bdb519e6584a40cb383a841e0.tar.gz
vyos-vm-images-b077c2942620581bdb519e6584a40cb383a841e0.zip
add ability to rebuild an ISO
Diffstat (limited to 'roles/create-iso')
-rw-r--r--roles/create-iso/tasks/main.yml12
-rw-r--r--roles/create-iso/tests/inventory2
-rw-r--r--roles/create-iso/tests/test.yml4
3 files changed, 18 insertions, 0 deletions
diff --git a/roles/create-iso/tasks/main.yml b/roles/create-iso/tasks/main.yml
new file mode 100644
index 0000000..6eef4e0
--- /dev/null
+++ b/roles/create-iso/tasks/main.yml
@@ -0,0 +1,12 @@
+---
+- name: create new iso
+ become: true
+ command: >
+ xorriso -as mkisofs -R -r -J -joliet-long -l -cache-inodes \
+ -iso-level 3 -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
+ -partition_offset 16 -A "VyOS" -p "live-build 1:20190311.1; \
+ https://debian-live.alioth.debian.org/live-build" \
+ -publisher "autobuild@vyos.net" -V "VyOS" --modification-date={{ lookup('pipe','date +\"%Y%m%d%H%M%S%2N\"') }} \
+ -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
+ -boot-info-table -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
+ -isohybrid-gpt-basdat -isohybrid-apm-hfsplus -o {{ vyos_cloud_upgrade_iso }} /tmp/live-{{ vyos_version }}
diff --git a/roles/create-iso/tests/inventory b/roles/create-iso/tests/inventory
new file mode 100644
index 0000000..878877b
--- /dev/null
+++ b/roles/create-iso/tests/inventory
@@ -0,0 +1,2 @@
+localhost
+
diff --git a/roles/create-iso/tests/test.yml b/roles/create-iso/tests/test.yml
new file mode 100644
index 0000000..96c69cb
--- /dev/null
+++ b/roles/create-iso/tests/test.yml
@@ -0,0 +1,4 @@
+---
+- hosts: localhost
+ roles:
+ - install-image