mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🔥 update luks status
This commit is contained in:
parent
c03df0c549
commit
cb425b00df
@ -184,7 +184,7 @@ void luks_express() noexcept {
|
||||
}
|
||||
|
||||
void luks_show() noexcept {
|
||||
static constexpr auto luks_success = "Done! Opened and ready for LVM (recommended) or direct mounting.";
|
||||
static constexpr auto luks_success = "Done!";
|
||||
const auto& lsblk = utils::exec("lsblk -o NAME,TYPE,FSTYPE,SIZE | grep \"part\\|crypt\\|NAME\\|TYPE\\|FSTYPE\\|SIZE\"");
|
||||
const auto& content = fmt::format("\n{}\n \n{}", luks_success, lsblk);
|
||||
detail::msgbox_widget(content, size(HEIGHT, GREATER_THAN, 5));
|
||||
|
@ -182,7 +182,7 @@ std::string exec(const std::string_view& command, const bool& interactive) noexc
|
||||
std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(command.data(), "r"), pclose);
|
||||
|
||||
if (!pipe)
|
||||
throw std::runtime_error("popen failed!");
|
||||
throw fmt::system_error(errno, "popen failed! '{}'", command);
|
||||
|
||||
std::string result{};
|
||||
std::array<char, 128> buffer{};
|
||||
|
Loading…
Reference in New Issue
Block a user