Remove Rawhide repo & no mock group

This is branched Fedora version thus Rawhide repo is no longer
available, and DNF simply quits if it cannot find listed repo.

Mock is not installed in Minimal disk image thus mock user group is not
available too.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2024-04-26 17:25:35 +03:00
parent a4967a4b0f
commit 354c39b72f
Signed by: davidlt
GPG Key ID: 7A5F42FAF91FACC3
1 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,7 @@ cloud-utils-growpart
%post
# Disable default repositories (not riscv64 in upstream)
dnf config-manager --set-disabled rawhide updates updates-testing fedora fedora-cisco-openh264
dnf config-manager --set-disabled updates updates-testing fedora fedora-cisco-openh264
dnf -y remove dracut-config-generic
@ -96,7 +96,8 @@ sed -i 's|noatime|noatime,x-systemd.device-timeout=300s,x-systemd.mount-timeout=
/usr/sbin/useradd -c "Fedora RISCV User" riscv
echo fedora_rocks! | passwd --stdin riscv
/usr/sbin/usermod -aG wheel riscv
/usr/sbin/usermod -aG mock riscv
# Mock is not installed by default in Minimal disk image
#/usr/sbin/usermod -aG mock riscv
# Create Fedora RISC-V repo
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo