]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Don't run test-repart when loop devices are not available
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 26 Aug 2020 22:08:52 +0000 (23:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 27 Aug 2020 15:14:58 +0000 (17:14 +0200)
src/partition/test-repart.sh

index 8b1ec6c4c1e5d28581ca1088c95ba7f047cbbf23..5765978290c91d9ecdddc4f1c61d1081629ab19f 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/env bash
 set -ex
 
+[[ -f /dev/loop-control ]] || exit 77
+
 repart=$1
 test -x $repart