From deaf0e8d0a9a8433db68149819921d894642a225 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 29 Jul 2024 03:07:03 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20tui:=20properly=20detect=20btrfs?= =?UTF-8?q?=20existing=20subvolumes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui.cpp b/src/tui.cpp index 0c1ebf5..e83459d 100644 --- a/src/tui.cpp +++ b/src/tui.cpp @@ -1747,7 +1747,7 @@ auto mount_root_partition(std::vector& partitions) noexcept // If the root partition is btrfs, offer to create subvolumes if (part_fs == "btrfs"sv) { // Check if there are subvolumes already on the btrfs partition - const auto& subvolumes = fmt::format(FMT_COMPILE("btrfs subvolume list '{}' 2>/dev/null | cut -d' ' -f9"), mountpoint_info); + const auto& subvolumes = gucc::utils::exec(fmt::format(FMT_COMPILE("btrfs subvolume list '{}' 2>/dev/null | cut -d' ' -f9"), mountpoint_info)); if (!subvolumes.empty()) { const auto& existing_subvolumes = detail::yesno_widget(fmt::format(FMT_COMPILE("\nFound subvolumes {}\n \nWould you like to mount them?\n "), subvolumes), size(HEIGHT, LESS_THAN, 15) | size(WIDTH, LESS_THAN, 75)); // Pre-existing subvolumes and user wants to mount them