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:
parent
a4967a4b0f
commit
354c39b72f
|
@ -78,7 +78,7 @@ cloud-utils-growpart
|
||||||
|
|
||||||
%post
|
%post
|
||||||
# Disable default repositories (not riscv64 in upstream)
|
# 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
|
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
|
/usr/sbin/useradd -c "Fedora RISCV User" riscv
|
||||||
echo fedora_rocks! | passwd --stdin riscv
|
echo fedora_rocks! | passwd --stdin riscv
|
||||||
/usr/sbin/usermod -aG wheel 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
|
# Create Fedora RISC-V repo
|
||||||
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
cat << EOF > /etc/yum.repos.d/fedora-riscv.repo
|
||||||
|
|
Loading…
Reference in New Issue