🚧 drivers: make chwd flags corrections to latest changes

This commit is contained in:
Vladislav Nepogodin 2024-09-10 03:09:09 +04:00
parent 9002dbbe85
commit 17781ec941
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -68,8 +68,7 @@ void install_graphics_menu() noexcept {
[[maybe_unused]] const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]); [[maybe_unused]] const auto& mountpoint = std::get<std::string>(config_data["MOUNTPOINT"]);
const std::vector<std::string> menu_entries = { const std::vector<std::string> menu_entries = {
"Auto-install free drivers", "Auto-install drivers",
"Auto-install proprietary drivers",
"Select Display Driver", "Select Display Driver",
"Back", "Back",
}; };
@ -80,15 +79,11 @@ void install_graphics_menu() noexcept {
switch (selected) { switch (selected) {
#ifdef NDEVENV #ifdef NDEVENV
case 0: case 0:
utils::arch_chroot("chwd -a pci free 0300"sv); utils::arch_chroot("chwd --autoconfigure"sv);
std::ofstream{fmt::format(FMT_COMPILE("{}/.video_installed"), mountpoint)}; // NOLINT
break;
case 1:
utils::arch_chroot("chwd -a pci nonfree 0300"sv);
std::ofstream{fmt::format(FMT_COMPILE("{}/.video_installed"), mountpoint)}; // NOLINT std::ofstream{fmt::format(FMT_COMPILE("{}/.video_installed"), mountpoint)}; // NOLINT
break; break;
#endif #endif
case 2: case 1:
setup_graphics_card(); setup_graphics_card();
break; break;
default: default: