summaryrefslogtreecommitdiffstats
path: root/testModule/scripts/setup-qcow2
diff options
context:
space:
mode:
authorJonathan Bauer2015-05-07 18:12:30 +0200
committerJonathan Bauer2015-05-07 18:12:30 +0200
commit46ba927a27fc6d6b2fc76096e57ae127c41b65b9 (patch)
tree81225400b12967f7e1d0a2018fdfbf527baef69d /testModule/scripts/setup-qcow2
parentadded pids to log messages for better debugging (diff)
downloadsystemd-init-46ba927a27fc6d6b2fc76096e57ae127c41b65b9.tar.gz
systemd-init-46ba927a27fc6d6b2fc76096e57ae127c41b65b9.tar.xz
systemd-init-46ba927a27fc6d6b2fc76096e57ae127c41b65b9.zip
started configuration stuff
Diffstat (limited to 'testModule/scripts/setup-qcow2')
-rwxr-xr-xtestModule/scripts/setup-qcow29
1 files changed, 6 insertions, 3 deletions
diff --git a/testModule/scripts/setup-qcow2 b/testModule/scripts/setup-qcow2
index 86b69db2..cc74457b 100755
--- a/testModule/scripts/setup-qcow2
+++ b/testModule/scripts/setup-qcow2
@@ -9,10 +9,13 @@ command -v emergency_shell >/dev/null || . /lib/dracut-lib.sh
#
# TODO make this configurable
[ -f /opt/openslx/config ] && . /opt/openslx/config
+[ -z $SLX_DNBD3_SERVER ] && SLX_DNBD3_SERVER="132.230.4.1"
+[ -z $SLX_STAGE4 ] && SLX_STAGE4="stage4/joe/centos7"
+[ -z $SLX_STAGE4_RID ] && SLX_STAGE4_RID="4"
+declare -rg DNBD3_SERVER="$SLX_DNBD3_SERVER"
+declare -rg DNBD3_IMAGE="$SLX_STAGE4"
+declare -rg DNBD3_RID="$SLX_STAGE4_RID"
declare -rg DNBD3_DEVICE="/dev/dnbd0"
-declare -rg DNBD3_SERVER="132.230.4.1"
-declare -rg DNBD3_IMAGE="stage4/joe/centos7"
-declare -rg DNBD3_RID="4"
declare -rg QCOW_CONTAINER="/opt/openslx/system/system.qcow2"
#
# END GLOBALS