-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rhel 8+ dnf support #57
Conversation
this should fix #47 |
I am not sure why the DCO is not working. |
So I tested it on Rocky Linux 8 and it works great. However on Rocky Linux 9 it fails:
Can you please check this? |
That looks to be an error either in the inter tubes or in the repo config file. Code is working but if dns can’t get package list from repo it’s going to fail. You should get the same error running ‘dnf upgrade’ manually. |
That's what I thought, too. However with |
Ok so that is odd and I'm not sure what the difference is but I found the same issue as you on rockylinux-9 but on almalinux-9 which is where I tested and got the code working originally it works just fine.
|
looking at the mirrorlist= line in both repos and the url output from the error I'm seeing that rockylinux adds this $rltype to the end of it's url where almalinux doesn't have that. The rest of variables in the url are substituted properly except that one in rocky-9. |
This command seems to work:
The added part is |
That'll work for the mirror list $rltype. Another issue is if you switch from mirrorlist to baseurl then the $contentdir variable will fail. I'm trying to figure out a way to have it load the variables in /etc/dnf/vars directory where those live so that it'll future proof it and not be broken if there is a change to any of those variables. |
I found the definitions in the substitutions class for loading them from the vars files at /usr/lib/python3.9/site-packages/dnf/conf/substitutions.py but don't know python enough to figure out how to use it in command we have. |
ok I figured it out:
added |
Looks good and works now. Can you please sign-off your commits (https://github.com/dev-sec/linux-patch-baseline/pull/57/checks?check_run_id=8582075495)? Then I'll merge this. |
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger hemminger@hotmail.com Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Hemminger, Corey <hemminger@hotmail.com> Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
…ent variables if they exist Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
Done DCO has passed now. |
Can this also get an official tag release? |
Signed-off-by: Corey Hemminger hemminger@hotmail.com