]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-repart: append /sbin and /usr/sbin to $PATH= to make sfdisk can be found 21974/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 2 Jan 2022 20:13:59 +0000 (05:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jan 2022 00:31:28 +0000 (09:31 +0900)
Fixes #21972.

src/partition/test-repart.sh

index eb7012f59ec0700c569826463a83fb023de47b2d..d50a79a15e17a3c6389fa3a8026bbca2941befe3 100755 (executable)
@@ -8,6 +8,8 @@ set -o pipefail
 repart="${1:?}"
 test -x "$repart"
 
+PATH=$PATH:/sbin:/usr/sbin
+
 D="$(mktemp --tmpdir --directory "test-repart.XXXXXXXXXX")"
 
 # shellcheck disable=SC2064