diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2021-03-18 23:15:01 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-03-19 10:28:55 +0000 |
commit | 4fe5ac83287678a5f870def74ed28f45ab22815f (patch) | |
tree | 03b0eee8cf6ceb4e6c1f5d9d65758d4bd04b9868 /src/apk_context.h | |
parent | 511621438d00b3df645399212ea939356db5edb6 (diff) | |
download | apk-tools-4fe5ac83287678a5f870def74ed28f45ab22815f.tar.gz apk-tools-4fe5ac83287678a5f870def74ed28f45ab22815f.tar.bz2 apk-tools-4fe5ac83287678a5f870def74ed28f45ab22815f.tar.xz apk-tools-4fe5ac83287678a5f870def74ed28f45ab22815f.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.
Diffstat (limited to 'src/apk_context.h')
-rw-r--r-- | src/apk_context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/apk_context.h b/src/apk_context.h index 8f7ca5e..2b4b889 100644 --- a/src/apk_context.h +++ b/src/apk_context.h @@ -25,6 +25,7 @@ #define APK_NO_SCRIPTS BIT(8) #define APK_NO_CACHE BIT(9) #define APK_NO_COMMIT_HOOKS BIT(10) +#define APK_NO_CHROOT BIT(11) #define APK_FORCE_OVERWRITE BIT(0) #define APK_FORCE_OLD_APK BIT(1) |