summaryrefslogtreecommitdiff
path: root/roles/installer/openbsd/base
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-12-25 18:20:54 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-12-25 18:20:54 +0100
commit2a89948bf13307cc936756c3a43bed51b3b49dc2 (patch)
treea058e111112f03a8dd769efaeb0bf7b4c0a31c71 /roles/installer/openbsd/base
parentinstaller: move bootstrap roles to common subdir (diff)
openbsd vm install almost works now
Diffstat (limited to 'roles/installer/openbsd/base')
-rw-r--r--roles/installer/openbsd/base/tasks/main.yml28
1 files changed, 5 insertions, 23 deletions
diff --git a/roles/installer/openbsd/base/tasks/main.yml b/roles/installer/openbsd/base/tasks/main.yml
index fcc79589..04a4f4ce 100644
--- a/roles/installer/openbsd/base/tasks/main.yml
+++ b/roles/installer/openbsd/base/tasks/main.yml
@@ -12,31 +12,13 @@
label: "openbsd-{{ item.0.version }} {{ item.1 }}"
get_url:
url: "{{ openbsd_installer_url }}/{{ item.0.version }}/{{ item.1 }}/cd{{ item.0.version | replace('.', '') }}.iso"
- dest: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}/cd-orig.iso"
+ dest: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}/cd.iso"
mode: 0644
force: "{{ openbsd_installer_force_download }}"
-- name: install geniosimage
+# TODO: verify the image using openbsd-signify
+
+- name: install genisoimage
apt:
- name: geniosimage
+ name: genisoimage
state: present
-
-## TODO
-# - iso_extract from cd-orig.iso -> <<version>>/<<arch>>/{boot.catalog,cdbr,cdboot,bsd.rd}, etc/boot.conf
-# - add lines to etc/boot.conf -> stty com0 115200, set tty com0
-# - generate etc/auto_install.conf
-# - name: generate host specific installer image
-# loop: "{{ openbsd_versions | subelements('arch') }}"
-# loop_control:
-# label: "openbsd-{{ item.0.version }} {{ item.1 }}"
-# command: 'genisoimage -RTLldDN -o "cd-{{ ansible_nodename }}.iso" -no-emul-boot -b "{{ item.0.version }}/{{ item.1 }}/cdbr" -c "{{ item.0.version }}/{{ item.1 }}/boot.catalog" data-{{ ansible_nodename }}/'
-# args:
-# chdir: "{{ installer_path }}/openbsd-{{ item.0.version }}/{{ item.1 }}"
-#
-# - print instructions
-# * attach to console
-# * select (S)hell
-# * # mount_cd9660 /dev/cd0c /mnt
-# * # cp /mnt/etc/auto_install.conf /
-# * # autoinstall
-#