I am building a local repo and the command I have tried for example 3 below I have tested below and it downloads the packages but when the installation summary open I get a yellow exclamation mark with Error setting up base repository. In my centos7 and test alma linux i did the same and it worked before. What could be wrong?
Thanks for that. Reason I had it as base is because in the yum file i had changed the repoid to base so it downloads to a folder called base and this works. But kickstart just has issues seeing it. Now this has worked in the past with centos 7 and with almalinux.
The command I am now using is:
dnf reposync -g --delete -p /home/www/html/repos/rockylinux/8.7/ --repoid=baseos --newest-only --downloadcomps --download-metadata
The error i get is
error setting up base repository
failed to set up installation source
The path in my kickstart is
repo --name=baseos --baseurl=nfs://servername:/home/www/html/repos/rocklinux/8.7/baseos/
Unfortunately we don’t have enough information to go off of. Without knowing the anaconda errors, it’s hard to tell what exactly the issue is, we can only guess. You can get the logs by going into the tty and viewing them. They are hard to read, but it’s a starting point.
Unfortunately my guess is going to be that url or nfs expect a variant tree to exist at where you’re pointing it. If you have a .treeinfo there (which can contain a variant tree), do you have it properly configured? What exactly is in /home/www/html/repos/rockylinux/8.7/?
so it was the .treeinfo. I do remember when I first copied it all with the .treeinfo it worked but then i chnaged the repo name from BaseOS to baseos and AppStream to appstream. The .treeinfo had no idea of its new name. I changed the info in the .treeinfo to the new folder names and now its picked it up. Do I need to add my other repo folders to the .treeinfo file? I never had this .treeinfo for centos7.9 or Almalinux and it just worked.
What exactly is in /home/www/html/repos/rockylinux/8.7/ ?
I’ve never used anything smart for mirroring repos, like ‘dnf reposync’.
Initially I had ‘lftp mirror’ and now ‘rsync’ (from nearest official mirror).
Part of the reason is that my local copy is still sync’d/hosted with something that has no ‘dnf’.
The centos.org/7/os/x86_64/ does have .treeinfo (and .discinfo).
The centos.org/7/updates/x86_64/ does not.
The content of .treeinfo looks like something that the Anaconda installer might care about – not dnf.
(The createrepo_c does not generate .treeinfo.)
Does any know if i need to add rest of my repos to the .treeinfo file
How do i generate a new .treeinfo from looking at my directory structure
BaseOS and AppStream is detected fine but when i introduce the other repos in my kickstartfile that then breaks.
With adding BasOS and AppStream repo i get 1824 packages installing. It did complain about other packages it could not find that were listed in my ks.cfg file.
You do not need to add the rest of your repositories to .treeinfo unless you want their group/comps information to show up in the installer (that assumes they have any). By default, BaseOS and AppStream are the primary ones you would need. Use repo for the rest.
so ive moved forward with my kickstart with your guys help. I have 2137 packages installing. I have a question regarding 3rdparty packages such as google-chrome-stable. Previously in centos7.9 in my kickstart i had a folder for a repo called 3rdparty and was able to add various packages into that folder with its own folder so i would for example have a folder for cuda, google, libraoffice,pureref etc.
Then i would run createrepo --update -v /var/www/html/repos/centos/7.9/3rdparty/ everytime i added a new package to that folder.
in rocky i tried to do the same and ran
createrepo --update -v /home/www/html/repos/rockylinux/8.7/3rdparty
In my folder for 3rdparty for rocky i have cuda,google,repodata but no metadata.
The repo seem to be accepted but then crashed when install was about to start. Do you know if this is supported in rocky linux?
Everything that you can do in RHEL can be done in Rocky Linux and other derivatives. You will need to review the errors you are getting in the installer to determine the cause of the issue.