test-repart: append /sbin and /usr/sbin to $PATH= so sfdisk can be found

This commit is contained in:
Michael Biebl 2022-01-05 21:53:21 +01:00
parent 4a93ec2f56
commit 23942d039d
2 changed files with 26 additions and 0 deletions

View File

@ -1,4 +1,5 @@
oomd-move-oomctl-to-bindir.patch
test-repart-append-sbin-and-usr-sbin-to-PATH-to-make-sfdi.patch
debian/Use-Debian-specific-config-files.patch
debian/Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch
debian/Make-run-lock-tmpfs-an-API-fs.patch

View File

@ -0,0 +1,25 @@
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Mon, 3 Jan 2022 05:13:59 +0900
Subject: test-repart: append /sbin and /usr/sbin to $PATH= to make sfdisk can
be found
Fixes #21972.
(cherry picked from commit 329a5b91d9ec780b2ce84ee336448291a568ae0d)
---
src/partition/test-repart.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/partition/test-repart.sh b/src/partition/test-repart.sh
index 525be8e..cf4a634 100755
--- a/src/partition/test-repart.sh
+++ b/src/partition/test-repart.sh
@@ -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