<div dir="ltr">The org_fedora_oscap addon which does the remediation bits runs in the /mnt/sysimage chroot environment and accesses the files in /etc/yum.repos.d (looking at strace)<div>Because of this, I don't think it respects the repo or proxy lines in the kickstart file, hence my attempt to edit the repo files directly before the addon executing.</div><div><br></div><div>Just to check, the %pre section of the kickstart runs before the disk is partitioned, is the correct?</div><div>And the %post sections run after the packages have been installed?</div><div><br></div><div>So is there anyway to get files onto the target system before the packages are installed? </div><div><br></div><div>Thanks</div><div>Alex</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 June 2017 at 23:48, bishop <span dir="ltr"><<a href="mailto:bishop@platypus.bc.ca" target="_blank">bishop@platypus.bc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Alex,<br>
<br>
/etc/yum.repos.d/CentOS-Base.<wbr>repo isn't replaced or updated:  it's a<br>
config file, and appears to be config(noreplace).  If you >it then your<br>
troubles with that one should be over.<br>
<br>
I had to wait until I could check, but I was sure of it.  And my own<br>
cobbler-installed systems have relied on this since at least centos4,<br>
despite many, many updates of the centos-release.<br>
<br>
(I use a modified %yum_repos macro in the kickstart to write a cron job<br>
that creates a new repo file, so the repos in my profiles always launder<br>
out into the subscribed hosts.  Works well)<br>
<br>
If you *delete* that repo file, though, yes, of course, it's going to be<br>
restored with a new copy.  Maybe don't do that.<br>
<br>
 - bish<br>
<span class=""><br>
<br>
> On Thu, Jun 1, 2017 at 7:29 AM, Alex Martin <<a href="mailto:alexmartin.bu@gmail.com">alexmartin.bu@gmail.com</a><br>
</span><span class="">> <mailto:<a href="mailto:alexmartin.bu@gmail.com">alexmartin.bu@gmail.<wbr>com</a>>> wrote:<br>
><br>
>     The problem is, once the centos-release package is installed, it<br>
>     replaces or updates the /etc/yum.repos.d/CentOS-Base.<wbr>repo files back<br>
>     to their defaults.<br>
><br>
>     This causes the installer to hang trying to download required scap<br>
>     files for that profile from the internet.<br>
><br>
<br>
</span>______________________________<wbr>_________________<br>
Kickstart-list mailing list<br>
<a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/kickstart-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/kickstart-<wbr>list</a><br>
</blockquote></div><br></div>