dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 0598ca1a9d4e51ae1dd21f6a9b4b7ddc5f35a744
parent 51b9822dcba3f4ad8ae25a092baf3b72719e7bb0
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 25 Mar 2019 06:20:34 -0400

Add vm/lepus.

Bunch of little snafu to provision an alpine linux VM in OpenBSD to
run GNU MDK :|

Diffstat:
vm/lepus/boot.sh | 7+++++++
vm/lepus/init.sh | 9+++++++++
vm/lepus/install.sh | 7+++++++
vm/lepus/mdk-deps.sh | 5+++++
vm/lepus/mdk-link | 1+
5 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/vm/lepus/boot.sh b/vm/lepus/boot.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +NAME=lepus +VM_DIR=~/.vm/$NAME + +cd $VM_DIR && \ + doas vmctl start $NAME -c -m 1G -L -i 1 -d $NAME.qcow2 diff --git a/vm/lepus/init.sh b/vm/lepus/init.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +NAME=lepus +VM_DIR=~/.vm/$NAME + +mkdir -p $VM_DIR && \ + cd $VM_DIR && \ + curl -O http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86_64/alpine-virt-3.9.2-x86_64.iso && \ + doas vmctl create $NAME.qcow2 -s 20G diff --git a/vm/lepus/install.sh b/vm/lepus/install.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +NAME=lepus +VM_DIR=~/.vm/$NAME + +cd $VM_DIR && \ + doas vmctl start $NAME -c -m 1G -L -i 1 -r alpine-virt-3.9.2-x86_64.iso -d $NAME.qcow2 diff --git a/vm/lepus/mdk-deps.sh b/vm/lepus/mdk-deps.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +apk update +apk add autoconf automake make gcc musl-dev \ + flex glib-dev readline-dev guile-libs intltool diff --git a/vm/lepus/mdk-link b/vm/lepus/mdk-link @@ -0,0 +1 @@ +https://ftp.gnu.org/gnu/mdk/v1.2.10/mdk-1.2.10.tar.gz