]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: check for /dev/loop-control when checking lodev availability
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 27 Mar 2024 18:35:30 +0000 (19:35 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 27 Mar 2024 18:35:30 +0000 (19:35 +0100)
commit0348b500efea840b711903124b30174f97b9ae68
tree5f4b2f5a9356810ba1ee380d2aeffde54eee39da
parent3a51e31be9f626cf772733cb289ed64739fab0e4
test: check for /dev/loop-control when checking lodev availability

losetup in util-linux 2.40 started reporting lost loop devices [0] and
it has an unfortunate side-effect where it reports lost devices even in
containers, which then makes the loop device check "falsely" pass [1].

Let's just check for /dev/loop-control explicitly to "work around" this.

[0] https://github.com/util-linux/util-linux/commit/a6ca0456cc6d704a786f6b66d8bb2d89ff18eba7
[1] https://github.com/util-linux/util-linux/issues/2824
test/units/testsuite-72.sh