🔥 update luks status

This commit is contained in:
Vladislav Nepogodin 2022-01-09 05:07:05 +04:00
parent c03df0c549
commit cb425b00df
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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{};