summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-11-29 15:34:57 +0100
committerJonathan Bauer2019-11-29 15:34:57 +0100
commit2d34e6e2148350af869628765f88ff579f3983c5 (patch)
tree6668a285da8778664088d8eb3e961f9bed39fc09
parent[conf-tgz] do not fail if config.tgz does not exist (diff)
downloadsystemd-init-2d34e6e2148350af869628765f88ff579f3983c5.tar.gz
systemd-init-2d34e6e2148350af869628765f88ff579f3983c5.tar.xz
systemd-init-2d34e6e2148350af869628765f88ff579f3983c5.zip
[dnbd3-rootfs] add default SLX_DNBD3_IMAGE
TODO configurable path
-rwxr-xr-xbuilder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/builder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh b/builder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh
index 619226f5..a960d1e0 100755
--- a/builder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh
+++ b/builder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh
@@ -52,6 +52,11 @@ container_unpack_losetup() {
exceptions.try
{
# region connect dnbd3 image
+# if not specified, use the default name for the bwlp stage4 image
+if [ -z "$SLX_DNBD3_IMAGE" ]; then
+ SLX_DNBD3_IMAGE="bwlp/maxilinux-$(uname -r)"
+ echo "SLX_DNBD3_IMAGE='$SLX_DNBD3_IMAGE'" >> /etc/openslx
+fi
(
IFS=", "
for host in ${SLX_DNBD3_SERVERS} FAIL; do