From bba741fb3097dad832f2d7fe2fd47f538362510c Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 29 Jul 2024 00:18:54 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20utils:=20fix=20boot=20mountpoint?= =?UTF-8?q?=20used=20for=20refind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index 37a73d7..04488d8 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1064,6 +1064,8 @@ void install_refind() noexcept { utils::inst_needed("refind"); + const auto& boot_mountpoint = fmt::format(FMT_COMPILE("{}{}"), mountpoint, uefi_mount); + // TODO(vnepogodin): make these configurable static constexpr auto default_kernel_params = "quiet zswap.enabled=0 nowatchdog"sv; const std::vector extra_kernel_versions{ @@ -1135,7 +1137,7 @@ void install_refind() noexcept { const gucc::bootloader::RefindInstallConfig refind_install_config{ .is_removable = is_removable, .root_mountpoint = mountpoint, - .boot_mountpoint = uefi_mount, + .boot_mountpoint = boot_mountpoint, .extra_kernel_versions = extra_kernel_versions, .kernel_params = *kernel_params, };