summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-12-17 19:09:42 +0000
committerPaul Spooren <mail@aparcar.org>2022-02-13 09:50:50 +0100
commit4c568416e31b9ec6d1bd50ff8198a2c2e2ab71ff (patch)
tree59cc30fb3b65c32921f8bb953f285117880d002a /src
parent6315575af1cfd9d8d195c6a7173b6a73ccf28f14 (diff)
downloadapk-tools-4c568416e31b9ec6d1bd50ff8198a2c2e2ab71ff.tar.gz
apk-tools-4c568416e31b9ec6d1bd50ff8198a2c2e2ab71ff.tar.bz2
apk-tools-4c568416e31b9ec6d1bd50ff8198a2c2e2ab71ff.tar.xz
apk-tools-4c568416e31b9ec6d1bd50ff8198a2c2e2ab71ff.zip
context: fix 'uvol' default path
'uvol' is installed to /usr/sbin by default. Assume that path if not set by APK_UVOL environment variable. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'src')
-rw-r--r--src/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/context.c b/src/context.c
index 3a806db..400e09b 100644
--- a/src/context.c
+++ b/src/context.c
@@ -50,7 +50,7 @@ int apk_ctx_prepare(struct apk_ctx *ac)
ac->flags |= APK_NO_CHROOT;
// Check uvol availability
- ac->uvol = getenv("APK_UVOL") ?: "/usr/bin/uvol";
+ ac->uvol = getenv("APK_UVOL") ?: "/usr/sbin/uvol";
if (access(ac->uvol, X_OK) != 0)
ac->uvol = ERR_PTR(-APKE_UVOL_NOT_AVAILABLE);
} else {