1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

repart: fix the loop dev support check

Since f17bdf8264 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.
This commit is contained in:
Frantisek Sumsal 2021-03-11 12:49:00 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent ceffd6a961
commit 3a1bc3fcc0

View File

@ -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