summaryrefslogtreecommitdiffstats
path: root/src/partition
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2020-08-27 00:08:52 +0200
committerLennart Poettering <lennart@poettering.net>2020-08-27 17:14:58 +0200
commitf17bdf8264e231fa31c769bff2475ef698487d0b (patch)
tree5ac8df35b802f4da95010bba394e36cdccc7f398 /src/partition
parentMerge pull request #16864 from yuwata/coverity-fixes (diff)
downloadsystemd-f17bdf8264e231fa31c769bff2475ef698487d0b.tar.xz
systemd-f17bdf8264e231fa31c769bff2475ef698487d0b.zip
Don't run test-repart when loop devices are not available
Diffstat (limited to 'src/partition')
-rwxr-xr-xsrc/partition/test-repart.sh2
1 files changed, 2 insertions, 0 deletions
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