Hi,
I am trying to automate "jail" creation under FreeBSD which includes building the OS from sources which is rather lengthy.
I'm using "polling" while doing it:
- name: build world
shell: executable=/bin/sh chdir=/usr/src SRCCONF={{ build_conf }} make buildworld > /tmp/build.log 2>&1
# async: 45
poll: 30
- name: install world
shell: executable=/bin/sh chdir=/usr/src SRCCONF={{ install_conf }} make installworld DESTDIR={{ disk_mount_point }} >> /tmp/build.log 2>&1
poll: 30
- name: make distribution
shell: executable=/bin/sh chdir=/usr/src SRCCONF={{ install_conf }} make distribution DESTDIR={{ disk_mount_point }} >> /tmp/build.log 2>&1
poll: 30
- name: build kernel
shell: executable=/bin/sh chdir=/usr/src SRCCONF={{ build_conf }} make buildkernel DESTDIR={{ disk_mount_point }} KERNCONFIG={{ kernel_confi
g }} >> /tmp/build.log 2>&1
poll: 30
- name: install kernel
shell: executable=/bin/sh chdir=/usr/src SRCCONF={{ install_conf }} make installkernel DESTDIR={{ disk_mount_point }} KERNCONFIG={{ kernel_config }} >> /tmp/build.log 2>&1
poll: 30
however every time I hit "build kernel" my builder VM crashes. When doing the same task manually - I have no such issue. (whether using screen or without it).
Anybody seen something similar in the wild/experienced similar issues?