mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
init: Add flag to avoid loading configuration
This commit is contained in:
parent
8c4c2156bd
commit
e05b58b060
6 changed files with 27 additions and 7 deletions
|
@ -427,12 +427,13 @@ void assertLibStoreInitialized() {
|
|||
};
|
||||
}
|
||||
|
||||
void initLibStore() {
|
||||
void initLibStore(bool loadConfig) {
|
||||
if (initLibStoreDone) return;
|
||||
|
||||
initLibUtil();
|
||||
|
||||
loadConfFile();
|
||||
if (loadConfig)
|
||||
loadConfFile();
|
||||
|
||||
preloadNSS();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue