advances in templating

This commit is contained in:
Jaromil 2016-06-14 20:43:43 +02:00
parent d2f08a3645
commit 64c649a9aa
2 changed files with 27 additions and 22 deletions

15
config
View File

@ -1,15 +0,0 @@
# os name
os="devuan"
# release name
release="jessie"
# release version
version="1.0.0-beta2"
# mirror url
mirror="http://packages.devuan.org/merged"
# mirror repo section
section="main"

34
vm-sdk
View File

@ -1,24 +1,44 @@
#!/usr/bin/env zsh
scope=vm-sdk
SDK_LIB=../libdevuansdk
SDK_BLENDS=../devuan-sdk-blends
pushd $SDK_LIB
source libdevuansdk
popd
pushd $SDK_BLENDS
source $SDK_BLENDS/
source
R=`pwd`
H=`pwd`
E=`pwd`
source config
pushd ../libdevuansdk
source libdevuansdk
popd
vm_sdk_init(){
fn vm_sdk_init $@
project_file=${1:-projects/devuan-jessie-latest-amd64-qcow2}
act "$scope: using project file ::1 file:: " ${project_file}
source ${project_file}
sdk_init
}
vm_sdk_init
# example workflow:
# 1st stage
#bootstrap amd64
#kernel_x86_install_default
bootstrap amd64
kernel_x86_install_default
# 2nd stage
#install opennebula.deb
blend #install opennebula.deb
# 3rd stage
#qemu_make_img