mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 14:32:22 +08:00
🚧 hot fix
This commit is contained in:
parent
9b352c9e2b
commit
31a3b6ae0f
@ -423,11 +423,11 @@ void install_cust_pkgs() noexcept {
|
||||
|
||||
if (hostcache) {
|
||||
// utils::exec(fmt::format("pacstrap {} {}", mountpoint, packages));
|
||||
detail::follow_process_log_widget({"/sbin/pacstrap", mountpoint, packages});
|
||||
detail::follow_process_log_widget({"/bin/sh", "sh", "-c", fmt::format("pacstrap {} {}", mountpoint, packages)});
|
||||
return;
|
||||
}
|
||||
// utils::exec(fmt::format("pacstrap -c {} {}", mountpoint, packages));
|
||||
detail::follow_process_log_widget({"/sbin/pacstrap", "-c", mountpoint, packages});
|
||||
detail::follow_process_log_widget({"/bin/sh", "sh", "-c", fmt::format("pacstrap -c {} {}", mountpoint, packages)});
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -461,7 +461,7 @@ void install_systemd_boot() noexcept {
|
||||
|
||||
utils::arch_chroot(fmt::format("bootctl --path={} install", uefi_mount));
|
||||
// utils::exec(fmt::format("pacstrap {} systemd-boot-manager", mountpoint));
|
||||
detail::follow_process_log_widget({"/sbin/pacstrap", mountpoint, "systemd-boot-manager"});
|
||||
detail::follow_process_log_widget({"/bin/sh", "sh", "-c", fmt::format("pacstrap {} systemd-boot-manager", mountpoint)});
|
||||
utils::arch_chroot("sdboot-manage gen");
|
||||
|
||||
// Check if the volume is removable. If so, dont use autodetect
|
||||
@ -611,7 +611,7 @@ void install_base() noexcept {
|
||||
#ifdef NDEVENV
|
||||
// filter_packages
|
||||
// utils::exec(fmt::format("pacstrap {} {} |& tee /tmp/pacstrap.log", mountpoint, packages));
|
||||
detail::follow_process_log_widget({"/sbin/pacstrap", mountpoint, packages});
|
||||
detail::follow_process_log_widget({"/bin/sh", "sh", "-c", fmt::format("pacstrap {} {} |& tee /tmp/pacstrap.log", mountpoint, packages)});
|
||||
|
||||
std::filesystem::copy("/etc/pacman.conf", fmt::format("{}/etc/pacman.conf", mountpoint));
|
||||
#endif
|
||||
|
@ -218,7 +218,7 @@ auto make_multiline(const std::string_view& str, bool reverse, const std::string
|
||||
static constexpr auto functor = [](auto&& rng) {
|
||||
return std::string_view(&*rng.begin(), static_cast<size_t>(ranges::distance(rng)));
|
||||
};
|
||||
// static constexpr auto second = [](auto&& rng) { return rng != ""; };
|
||||
static constexpr auto second = [](auto&& rng) { return rng != ""; };
|
||||
|
||||
#if defined(__clang__)
|
||||
const auto& splitted_view = str
|
||||
@ -232,7 +232,7 @@ auto make_multiline(const std::string_view& str, bool reverse, const std::string
|
||||
#endif
|
||||
|
||||
std::vector<std::string> lines{};
|
||||
ranges::for_each(view_res /* | ranges::views::filter(second)*/, [&](auto&& rng) { lines.emplace_back(rng); });
|
||||
ranges::for_each(view_res | ranges::views::filter(second), [&](auto&& rng) { lines.emplace_back(rng); });
|
||||
if (reverse) {
|
||||
ranges::reverse(lines);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user