diff options
Diffstat (limited to 'common/startup.c')
-rw-r--r-- | common/startup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/startup.c b/common/startup.c index 8553849cb3..8940674528 100644 --- a/common/startup.c +++ b/common/startup.c @@ -67,6 +67,9 @@ static int mount_root(void) mount("none", "pstore", "/pstore", NULL); } + if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT)) + defaultenv_load("/env", 0); + return 0; } fs_initcall(mount_root); @@ -79,9 +82,6 @@ static int load_environment(void) default_environment_path = default_environment_path_get(); - if (IS_ENABLED(CONFIG_DEFAULT_ENVIRONMENT)) - defaultenv_load("/env", 0); - envfs_load(default_environment_path, "/env", 0); nvvar_load(); |