Failed to download metadata for repo
I have to manually patch newly installed RHEL 8 server.
I have the bundle on usb mounted to server
/dev/sdc1 /mnt
I have copied the media.repo file to the /etc/yum.repos.d directory
These are the contents of the rhel8.repo file
[BaseOS]
name=BaseOS
mediaid=None
metadata_expire=-1
cost=500
baseurl=file:///mnt/BaseOS/
enabled=1
gpgcheck=0
gpgkey=file///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[AppStream]
name=BaseOS
metadata_expire=-1
cost=500
baseurl=file:///mnt/AppStream/
enabled=1
gpgcheck=0
gpgkey=file///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
when I run the dnf update
BaseOS
Error: Failed to download metadata for repo 'BaseOS': repomd.xml parse error at line: 1 (Document is empty)
what is needed to fix this issue. please Advise.