From 7fa573d83a1881a0c38323f1eccfd74efd335e03 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Thu, 9 Jun 2022 02:28:52 +0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=20=20remove=20missing=20drivers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tui.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/tui.cpp b/src/tui.cpp index d2b0031..a17eeea 100644 --- a/src/tui.cpp +++ b/src/tui.cpp @@ -733,7 +733,7 @@ void install_refind() noexcept { const auto& luks = std::get(config_data["LUKS"]); const auto& luks_dev = std::get(config_data["LUKS_DEV"]); - utils::inst_needed("refind refind-drivers"); + utils::inst_needed("refind"); // Check if the volume is removable. If so, install all drivers const auto& root_name = utils::exec("mount | awk '/\\/mnt / {print $1}' | sed s~/dev/mapper/~~g | sed s~/dev/~~g"); @@ -760,13 +760,6 @@ void install_refind() noexcept { utils::exec("refind-install --root /mnt 2>>/tmp/cachyos-install.log &>/dev/null"); } - // If root is on exotic filesystem, add drivers - const auto& rootfs = utils::exec("mount | awk '/\\/mnt / {print $5}'"); - if (rootfs == "nilfs2" || rootfs == "xfs" || rootfs == "jfs") { - const auto& file_name_to_copy = fmt::format(FMT_COMPILE("{}_x64.efi"), rootfs); - fs::copy_file(fmt::format(FMT_COMPILE("/usr/share/refind/drivers_x64/{}"), file_name_to_copy), fmt::format(FMT_COMPILE("{}{}/EFI/refind/drivers_x64/{}"), mountpoint, uefi_mount, file_name_to_copy), fs::copy_options::overwrite_existing); - } - // Mount as rw // sed -i 's/ro\ /rw\ \ /g' /mnt/boot/refind_linux.conf