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>
cute-signatures
Daniel Golle 2021-12-17 19:09:42 +00:00 committed by Paul Spooren
parent 6315575af1
commit 4c568416e3
1 changed files with 1 additions and 1 deletions

View File

@ -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 {