summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store
diff options
context:
space:
mode:
authorSimon Rettberg2016-07-14 15:07:30 +0200
committerSimon Rettberg2016-07-14 15:07:30 +0200
commit8a927da541ff175c2601e54726c642b0d5375b13 (patch)
treec3846e1b7e7f3a04a7afef27a9367c936306572a /remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store
parent[rfs-stage32] Add --delete and --sync to slxlog, make spam protection a per-u... (diff)
downloadtm-scripts-8a927da541ff175c2601e54726c642b0d5375b13.tar.gz
tm-scripts-8a927da541ff175c2601e54726c642b0d5375b13.tar.xz
tm-scripts-8a927da541ff175c2601e54726c642b0d5375b13.zip
Update several calls to slxlog with --delete instead of having sleep + rm follow the call
Diffstat (limited to 'remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store')
-rwxr-xr-xremote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store5
1 files changed, 2 insertions, 3 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store b/remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store
index 363e5253..235cf4be 100755
--- a/remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store
+++ b/remote/modules/run-virt/data/opt/openslx/scripts/systemd-mount_vm_store
@@ -31,13 +31,12 @@ fi > "$OUTFILE" 2>&1
if [ "$RET" -ne "0" ]; then
if [ -s "$OUTFILE" ]; then
- slxlog "mount-vmstore-fail" "Mounting '$SLX_VM_NFS' failed. VMs will not boot." "$OUTFILE"
- sleep 1
+ slxlog --delete "mount-vmstore-fail" "Mounting '$SLX_VM_NFS' failed. VMs will not boot." "$OUTFILE"
else
slxlog "mount-vmstore-fail" "Mounting '$SLX_VM_NFS' failed. VMs will not boot."
+ rm -f -- "$OUTFILE"
fi
fi
-rm -f -- "$OUTFILE"
exit $RET