summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-03-18 23:15:01 -0600
committerTimo Teräs <timo.teras@iki.fi>2021-03-19 13:20:29 +0200
commit73504fb7ab2bb659660dae7e1cafab0cfedeb13d (patch)
tree69d076f6e94985c2c554aca7a7f2b5600e1c9656 /src/apk_database.h
parentff0ea8265f0621995b94b69416e2a1709f1cbec6 (diff)
downloadapk-tools-73504fb7ab2bb659660dae7e1cafab0cfedeb13d.tar.gz
apk-tools-73504fb7ab2bb659660dae7e1cafab0cfedeb13d.tar.bz2
apk-tools-73504fb7ab2bb659660dae7e1cafab0cfedeb13d.tar.xz
apk-tools-73504fb7ab2bb659660dae7e1cafab0cfedeb13d.zip
database: do not chroot(".") unless actually necessary
If we use default root (/), then we do not have to chroot to run scripts. Use APK_NO_CHROOT flag for this scenario to avoid the chroot. This helps with using apk with bwrap and OSTree. Closes #10736. [TT: backported to 2.12-stable]
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index 3488031..917ee35 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -159,6 +159,7 @@ struct apk_database {
int permanent : 1;
int autoupdate : 1;
int open_complete : 1;
+ int no_chroot : 1;
int compat_newfeatures : 1;
int compat_notinstallable : 1;