<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><span style="color:#1F497D">Hi Haiqing<br>
</span></p>
<p><span style="color:#1F497D">Thanks for your investigation.<br>
</span></p>
<p><span style="color:#1F497D">>>“#!/bin/sh echo </span><span style="color:#1F497D">module_hotfixes=true</span><span style="color:#1F497D"> >> ‘/etc/dnf/dnf.conf’” in the “%pre” section of kickstart cfg"</span></p>
<p><span style="color:#1F497D">yes, i tried, it invalid. In the end, I had to use "</span><span style="color:#1F497D"><span style="color:#1F497D">modules.yaml</span>".<br>
</span></p>
<p><span style="color:#1F497D"><br>
</span></p>
<div class="moz-cite-prefix">On 2020/12/9 上午10:32, Bai, Haiqing wrote:<br>
</div>
<blockquote type="cite" cite="mid:BN7PR11MB256134B052FF6F3FDA808D78EECC0@BN7PR11MB2561.namprd11.prod.outlook.com">
<p class="MsoNormal"><span style="color:#1F497D">You are right, this is caused by the dnf modularity.  For just test purpose, do you know whether can adding “#!/bin/sh echo
</span><span style="color:#1F497D">module_hotfixes=true</span><span style="color:#1F497D"> >> ‘/etc/dnf/dnf.conf’” in the “%pre” section of kickstart cfg, 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I tried but failed to update “/etc/dnf/dnf.conf” on target.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Actually the below commit[0] making the normal repodata to module repo with the upstream “modules.yaml”:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="http://mirror.centos.org/centos/8.1.1911/AppStream/x86_64/os/repodata/1feb2b0b68761a17ebdf1084518e3f53cec4ec5f317dc1dc7c780a2b041ec3b6-modules.yaml.gz" moz-do-not-send="true">http://mirror.centos.org/centos/8.1.1911/AppStream/x86_64/os/repodata/1feb2b0b68761a17ebdf1084518e3f53cec4ec5f317dc1dc7c780a2b041ec3b6-modules.yaml.gz</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">this gz file has been deprecated ,  after updated the above one with the modules.yaml in
<a href="https://vault.centos.org/8.1.1911/AppStream/x86_64/os/repodata/" moz-do-not-send="true">
<span style="color:#1F497D;text-decoration:none">https://vault.centos.org/8.1.1911/AppStream/x86_64/os/repodata/</span></a>,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">the pyton36/python36-devel excluding issue gone,  but the same issues for qemu-kvm-ev.   I think this can be explained for that “qemu-kvm-ev” is not from vault AppStream, but built locally.  This means
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">we have to create module repo for these packages built locally.  I found below tools set that can do this:<o:p></o:p></span></p>
<pre><span style="color:black"><a href="https://github.com/rpm-software-management/modulemd-tools" moz-do-not-send="true">https://github.com/rpm-software-management/modulemd-tools</a></span><span style="color:#1F497D"><o:p></o:p></span></pre>
<p class="MsoNormal"><span style="color:#1F497D">These tools requires that the “libmodulemd” must be upgraded to 2.0 which will cause python “__common_types” issue.  I am still working on this.</span></p>
</blockquote>
---------------------------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)<br>
is intended only for the use of the intended recipient and may be confidential and/or privileged of<br>
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication<br>
is not the intended recipient,unauthorized use,forwarding, printing, storing, disclosure or copying<br>
is strictly prohibited, and may be unlawful.If you have received this communication in error,please<br>
immediately notify the sender by return e-mail, and delete the original message and all copies from<br>
your system. Thank you.<br>
---------------------------------------------------------------------------------------------------
</body>
</html>