From 42c78641f53c8e6208bfd1808259f116a7ec71de Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Thu, 11 Oct 2018 10:32:25 -0700 Subject: tools/create-openbsd*: Support post-version flip snapshots. * Fixed pkg_add status checking * Switched to qcow2 test image * Minor GC --- tools/create-openbsd-gce-ci.sh | 6 ++++-- tools/create-openbsd-vmm-worker.sh | 22 +++++----------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/tools/create-openbsd-gce-ci.sh b/tools/create-openbsd-gce-ci.sh index 1075aac1b..b425ef1ff 100755 --- a/tools/create-openbsd-gce-ci.sh +++ b/tools/create-openbsd-gce-ci.sh @@ -26,11 +26,13 @@ if [[ ! -f "${ISO}" ]]; then fi # Create custom siteXX.tgz set. -mkdir -p etc +rm -fr etc && mkdir -p etc cat >install.site < boot.conf echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config diff --git a/tools/create-openbsd-vmm-worker.sh b/tools/create-openbsd-vmm-worker.sh index 15f78cf08..ebc2d4c02 100755 --- a/tools/create-openbsd-vmm-worker.sh +++ b/tools/create-openbsd-vmm-worker.sh @@ -26,7 +26,7 @@ if [[ ! -f "${ISO}" ]]; then fi # Create custom siteXX.tgz set. -mkdir -p etc +rm -fr etc && mkdir -p etc cat >install.site <<'EOF' #!/bin/sh echo 'set tty com0' > boot.conf @@ -45,13 +45,6 @@ cat >etc/installurl <etc/rc.local <etc/rc.conf.local <&1 <" @@ -171,11 +164,6 @@ expect { } EOF -# Create Compute Engine disk image. -echo "Archiving worker_disk.raw... (this may take a while)" -i="openbsd-${ARCH}-${RELNO}-vmm.tar.gz" -tar -zcf "$i" worker_disk.raw - cat <