Hey, the current community templates should work for oracle linux (https://github.com/theforeman/community-templates). I'm not sure about the uek4 repository but the way to get rid of the mysql repository during kickstart is in this commit: https://github.com/theforeman/community-templates/commit/9ec2d99f1de16e4f0640883aeb18a29a2015853e maybe something simmilar to this will also work for the uek repo. also note that there is a disable-uek parameter now: https://github.com/theforeman/community-templates/commit/4d62c9bf7f4af989e9f115fa76f8cf7839a62de8
Greetings Klaas ----- Ursprüngliche Mail ----- Von: "'Jason B. Nance' via Foreman users" <[email protected]> An: [email protected] Gesendet: Montag, 14. November 2016 22:25:12 Betreff: [foreman-users] OEL 6 hardcoded yum repo Hello Everyone, I've been attempting to kickstart an OEL 6 server off my Katello environment and kept getting an error about failing to add a UEK4 repository. Since there is no such repository definition in my provisioning templates / kickstart this was very perplexing to me. After banging my head against the wall for a bit I finally mounted the OEL 6 "install.img" and did a grep for UEK4. This is the awesomeness I found: $ cd /path/to/mounted/install.img $ grep -r UEK4 * usr/lib/anaconda/yuminstall.py: enableUEK4repo = False usr/lib/anaconda/yuminstall.py: enableUEK4repo = True usr/lib/anaconda/yuminstall.py: # If we are upgrading we need to check for pre-UEK4 kernel usr/lib/anaconda/yuminstall.py: # if found we do not want to enable the UEK4 repo unless it is also installed usr/lib/anaconda/yuminstall.py: foundUEK4 = False usr/lib/anaconda/yuminstall.py: log.info("Found UEK4 modules directory %s" %(dirname)) usr/lib/anaconda/yuminstall.py: foundUEK4 = True usr/lib/anaconda/yuminstall.py: if not foundUEK4: usr/lib/anaconda/yuminstall.py: log.info("Found UEK1 kernel and no UEK4 kernel, disabling UEK4 repo") usr/lib/anaconda/yuminstall.py: enableUEK4repo = False usr/lib/anaconda/yuminstall.py: if not foundUEK4: usr/lib/anaconda/yuminstall.py: log.info("Found UEK2 kernel and no UEK4 kernel, disabling UEK4 repo") usr/lib/anaconda/yuminstall.py: enableUEK4repo = False usr/lib/anaconda/yuminstall.py: if not foundUEK4: usr/lib/anaconda/yuminstall.py: log.info("Found UEK3 kernel and no UEK4 kernel, disabling UEK4 repo") usr/lib/anaconda/yuminstall.py: enableUEK4repo = False usr/lib/anaconda/yuminstall.py: if enableUEK4repo: usr/lib/anaconda/yuminstall.py: self.addUEKRepo(extraRepos, "UEK4") I've not found a way to disable this via any sort of boot options or the like and am currently headed down the path of creating a new, custom version of their install.img. If anyone has any brilliant ideas I would love to hear them. I even checked their non-UEK boot media and it had the same code. Hopefully, at the least, some other poor slave forced to use OEL will benefit from my discovery. Regards, j -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
