From: Daan De Meyer Date: Wed, 26 Aug 2020 22:08:52 +0000 (+0100) Subject: Don't run test-repart when loop devices are not available X-Git-Tag: v247-rc1~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f17bdf8264e231fa31c769bff2475ef698487d0b;p=thirdparty%2Fsystemd.git Don't run test-repart when loop devices are not available --- diff --git a/src/partition/test-repart.sh b/src/partition/test-repart.sh index 8b1ec6c4c1e..5765978290c 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