diff options
-rwxr-xr-x | builder/modules.d/dnbd3-rootfs/hooks/prepare-root-partition.sh | 5 |
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 |