From: Frantisek Sumsal Date: Thu, 11 Mar 2021 11:49:00 +0000 (+0100) Subject: repart: fix the loop dev support check X-Git-Tag: v248-rc3~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a1bc3fcc02e61683e815091d129b03ad10771ef;p=thirdparty%2Fsystemd.git repart: fix the loop dev support check Since f17bdf8264e231fa31c769bff2475ef698487d0b the test-repart was effectively disabled, since `/dev/loop-control` is a character special file, whereas `-f` works only on regular files. Even though we could use `-c` to check specifically for character special files, let's use `-e` just in case. --- diff --git a/src/partition/test-repart.sh b/src/partition/test-repart.sh index 0910d68078c..d21865dd647 100755 --- a/src/partition/test-repart.sh +++ b/src/partition/test-repart.sh @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LGPL-2.1-or-later set -ex -[[ -f /dev/loop-control ]] || exit 77 +[[ -e /dev/loop-control ]] || exit 77 repart=$1 test -x $repart