From a9da535031ed79102d51db63b9da68eaf276d8d0 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Wed, 10 Jun 2020 12:04:45 +0000 Subject: [PATCH] Add a line to unount all the snap loop devices --- scripts/run_job.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/run_job.sh b/scripts/run_job.sh index 355a049..de3ab65 100755 --- a/scripts/run_job.sh +++ b/scripts/run_job.sh @@ -2,7 +2,11 @@ . CONFIG +# stop unnecessary services sudo systemctl stop ${SERVICES} +# Unmount all the snap loop devices +for mount in $(df -h | grep loop.*snap | awk '{print $6}'); do sudo umount $mount; done + cd ${SCRIPTSDIR}/../configs ${WORKDIR}/hpl-2.3/bin/rpi4-mpich/xhpl