👷 oops

This commit is contained in:
Vladislav Nepogodin 2022-06-12 03:30:54 +04:00
parent 5fe175b1ea
commit 4a472d7954
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -355,6 +355,8 @@ void set_hostname(const std::string_view& hostname) noexcept {
void set_locale(const std::string_view& locale) noexcept { void set_locale(const std::string_view& locale) noexcept {
spdlog::info("Selected locale: {}", locale); spdlog::info("Selected locale: {}", locale);
#ifdef NDEVENV #ifdef NDEVENV
auto* config_instance = Config::instance();
auto& config_data = config_instance->data();
const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]); const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]);
const auto& locale_config_path = fmt::format(FMT_COMPILE("{}/etc/locale.conf"), mountpoint); const auto& locale_config_path = fmt::format(FMT_COMPILE("{}/etc/locale.conf"), mountpoint);
const auto& locale_gen_path = fmt::format(FMT_COMPILE("{}/etc/locale.gen"), mountpoint); const auto& locale_gen_path = fmt::format(FMT_COMPILE("{}/etc/locale.gen"), mountpoint);