diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-02-27 10:51:34 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-27 10:52:16 +0200 |
commit | 72b878e6551be026316d26550ebceeb0c863a6bb (patch) | |
tree | bb7428db5cd1357e4f7ee210f7c993c926acb39c /src/apk_database.h | |
parent | b11d876806c533cb9b639002d46e61e3261e02de (diff) | |
download | aports-72b878e6551be026316d26550ebceeb0c863a6bb.tar.bz2 aports-72b878e6551be026316d26550ebceeb0c863a6bb.tar.xz |
db: mount /proc for --root if it's not mounted, use mount syscall
musl c-library does not work properly without /proc, and potentially
running the scripts need this.
Diffstat (limited to 'src/apk_database.h')
-rw-r--r-- | src/apk_database.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h index 19cabaf49e..27714d8237 100644 --- a/src/apk_database.h +++ b/src/apk_database.h @@ -145,7 +145,8 @@ struct apk_database { int root_fd, lock_fd, cache_fd, keys_fd; unsigned num_repos, num_repo_tags; const char *cache_dir; - char *cache_remount_dir; + char *cache_remount_dir, *root_proc_dir; + unsigned long cache_remount_flags; apk_blob_t *arch; unsigned int local_repos, available_repos; int repo_update_errors; |