diff --git a/v2/fedora-niri.sh b/v2/fedora-niri.sh index 556bc5a..c6f158a 100755 --- a/v2/fedora-niri.sh +++ b/v2/fedora-niri.sh @@ -88,8 +88,16 @@ CURRENT_DM="$(detect_display_manager)" add_terra_repo() { if [ ! -f /etc/yum.repos.d/terra.repo ]; then say_yellow "Adding Terra repository for Noctalia Shell..." - # Fetches the repository safely utilizing your current Fedora release version - sudo dnf install -y --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release + + # 1. Instruct DNF exactly where to find and import the GPG key during bootstrap + sudo dnf install -y \ + --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' \ + --setopt='terra.gpgkey=https://repos.fyralabs.com/terra$releasever/key.asc' \ + terra-release + + # 2. Explicitly force a metadata refresh and accept the keys automatically + say_yellow "Refreshing package metadata and importing keys..." + sudo dnf -y check-update || true else say_gray "Terra repository already configured." fi