From 5403022c376a53f3c52c4c49e3fd12a7e5ce53a0 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 15 Oct 2021 12:39:44 +0200 Subject: #1062 Calculate checksum on image creation Otherwise, OpenGnsys depends on cron and bittorrent specific scripts to obtain images checksums. --- client/engine/Image.lib | 1 + 1 file changed, 1 insertion(+) diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 4453bcfc..d45ece45 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -431,6 +431,7 @@ ERRCODE=$? if [ $ERRCODE == 0 ]; then echo "$(ogGetImageInfo $IMGFILE):$(ogGetHostname)" > $IMGFILE.info cp -f $IMGFILE.info /tmp/image.info + md5sum "$IMGFILE" | cut -f1 -d " " > "$IMGFILE".full.sum else ogRaiseError $OG_ERR_IMAGE "$1 $2 $IMGFILE" rm -f "$IMGFILE" -- cgit v1.2.3-18-g5258