diff options
author | Jonathan Bauer | 2019-11-29 15:34:57 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-11-29 15:34:57 +0100 |
commit | 2d34e6e2148350af869628765f88ff579f3983c5 (patch) | |
tree | 6668a285da8778664088d8eb3e961f9bed39fc09 | |
parent | [conf-tgz] do not fail if config.tgz does not exist (diff) | |
download | systemd-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-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 |