]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: fix the loop dev support check
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 11 Mar 2021 11:49:00 +0000 (12:49 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Mar 2021 16:35:57 +0000 (17:35 +0100)
commit259dd5872c8725e1383ae6e46e892fa68a604f89
tree73898310eb57ede257b1abeaeef8c71d06ed5617
parent88c83ac4ee98111e58a7a80d890636e4d8587514
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.

(cherry picked from commit 3a1bc3fcc02e61683e815091d129b03ad10771ef)
src/partition/test-repart.sh