From f17bdf8264e231fa31c769bff2475ef698487d0b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 26 Aug 2020 23:08:52 +0100 Subject: [PATCH] Don't run test-repart when loop devices are not available --- src/partition/test-repart.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/partition/test-repart.sh b/src/partition/test-repart.sh index 8b1ec6c4c1..5765978290 100755 --- a/src/partition/test-repart.sh +++ b/src/partition/test-repart.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -ex +[[ -f /dev/loop-control ]] || exit 77 + repart=$1 test -x $repart