enable uvol support by default
parent
9f07a3447e
commit
d38e2dd65a
|
@ -44,7 +44,7 @@ int apk_ctx_prepare(struct apk_ctx *ac)
|
||||||
if (!ac->root) ac->root = "/";
|
if (!ac->root) ac->root = "/";
|
||||||
if (!ac->cache_max_age) ac->cache_max_age = 4*60*60; /* 4 hours default */
|
if (!ac->cache_max_age) ac->cache_max_age = 4*60*60; /* 4 hours default */
|
||||||
if (!strcmp(ac->root, "/")) ac->flags |= APK_NO_CHROOT; /* skip chroot if root is default */
|
if (!strcmp(ac->root, "/")) ac->flags |= APK_NO_CHROOT; /* skip chroot if root is default */
|
||||||
ac->uvol = getenv("APK_UVOL");
|
ac->uvol = getenv("APK_UVOL") ?: "/usr/bin/uvol";
|
||||||
|
|
||||||
ac->root_fd = openat(AT_FDCWD, ac->root, O_RDONLY | O_CLOEXEC);
|
ac->root_fd = openat(AT_FDCWD, ac->root, O_RDONLY | O_CLOEXEC);
|
||||||
if (ac->root_fd < 0 && (ac->open_flags & APK_OPENF_CREATE)) {
|
if (ac->root_fd < 0 && (ac->open_flags & APK_OPENF_CREATE)) {
|
||||||
|
|
Loading…
Reference in New Issue