File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1610,6 +1610,8 @@ void install_cachyos_repo() noexcept {
1610
1610
1611
1611
const auto & isa_levels = gucc::cpu::get_isa_levels ();
1612
1612
1613
+ const auto & is_oracle_vm = gucc::utils::exec_checked (" systemd-detect-virt | grep -q oracle" );
1614
+
1613
1615
static constexpr auto CACHYOS_V1_REPO_STR = R"(
1614
1616
[cachyos]
1615
1617
Include = /etc/pacman.d/cachyos-mirrorlist
@@ -1628,6 +1630,10 @@ Include = /etc/pacman.d/cachyos-v4-mirrorlist
1628
1630
)" ;
1629
1631
1630
1632
add_arch_specific_repo (" x86_64" , " cachyos" , isa_levels, CACHYOS_V1_REPO_STR);
1633
+ if (is_oracle_vm) {
1634
+ spdlog::info (" Oracle VM detected. skipping ISA specific repos" );
1635
+ return ;
1636
+ }
1631
1637
add_arch_specific_repo (" x86_64_v3" , " cachyos-v3" , isa_levels, CACHYOS_V3_REPO_STR);
1632
1638
add_arch_specific_repo (" x86_64_v4" , " cachyos-v4" , isa_levels, CACHYOS_V4_REPO_STR);
1633
1639
}
You can’t perform that action at this time.
0 commit comments