From 2d34e6e2148350af869628765f88ff579f3983c5 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 29 Nov 2019 15:34:57 +0100 Subject: [dnbd3-rootfs] add default SLX_DNBD3_IMAGE TODO configurable path --- builder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3-55-g7522