From 658c193799db28ed299e24ae242a112005c68ef9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz>
Date: Fri, 3 May 2024 15:38:39 +0000
Subject: [PATCH] Fix creating of scratch volumes

---
 demo/terraform/vms.tf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/demo/terraform/vms.tf b/demo/terraform/vms.tf
index 6479ea0..32a250f 100644
--- a/demo/terraform/vms.tf
+++ b/demo/terraform/vms.tf
@@ -247,8 +247,8 @@ volumes="${join("\n", [for n, d in zipmap(tolist(local.nodes[*].name), tolist(op
 volume=$(echo "$volumes" | grep "$(hostname):")
 device=$(echo "$volume" | cut -d: -f2)
 if ! dumpe2fs -h "$device" >/dev/null 2>&1; then
-	mkfs.ext4 -L DOCKER "$device"
-	grep -q 'LABEL=DOCKER' /etc/fstab || /bin/echo -e "LABEL=DOCKER\t/scratch\text4\tdefaults\t0\t0" | tee -a /etc/fstab
+	mkfs.ext4 -L SCRATCH "$device"
+	grep -q 'LABEL=SCRATCH' /etc/fstab || /bin/echo -e "LABEL=SCRATCH\t/scratch\text4\tdefaults\t0\t0" | tee -a /etc/fstab
 	mkdir -p /scratch 2>/dev/null || true
 	mount -a
 fi
-- 
GitLab