<p dir="ltr"><br>
On Jan 9, 2014 6:26 AM, &quot;Chris Adams&quot; &lt;<a href="mailto:linux@cmadams.net">linux@cmadams.net</a>&gt; wrote:<br>
&gt;<br>
&gt; Once upon a time, Toshio Kuratomi &lt;<a href="mailto:a.badger@gmail.com">a.badger@gmail.com</a>&gt; said:<br>
&gt; &gt; &lt;nod&gt;  Just have yum drop a config file in there that protects the kernel<br>
&gt; &gt; rather than protecting the kernel if some other package chooses to protect<br>
&gt; &gt; something else.<br>
&gt;<br>
&gt; The magic &quot;don&#39;t delete the running kernel&quot; can&#39;t be done with just a<br>
&gt; config file.  Something has to detect which kernel version is running<br>
&gt; and match it to an RPM, and then protect just that version of multiple<br>
&gt; installed kernel RPMs.<br>
&gt;</p>
<p dir="ltr">Can&#39;t the meaning of a package name in the config file simply mean: &quot;make sure one of these packages is always installed&quot;?</p>
<p dir="ltr">That won&#39;t protect the running kernel but it will protect a kernel (probably the latest installed).  That would seem to address hreindl&#39;s use case of wanting to test on multiple systems and when satisfied that things are working cleanup all older packages.</p>

<p dir="ltr">That would still be a difference from the current yum code but less than not having any protection at all and would be more generic.</p>
<p dir="ltr">-Toshio</p>
<p dir="ltr">&gt; I supposed you could do it external to yum/dnf with a boot-time script<br>
&gt; that rewrites a config file to protect kernel-$(uname -r), but that may<br>
&gt; not always work (it would have to handle things like kernel-PAE and<br>
&gt; such).<br>
&gt;<br>
&gt; --<br>
&gt; Chris Adams &lt;<a href="mailto:linux@cmadams.net">linux@cmadams.net</a>&gt;<br>
&gt; --<br>
&gt; devel mailing list<br>
&gt; <a href="mailto:devel@lists.fedoraproject.org">devel@lists.fedoraproject.org</a><br>
&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/devel">https://admin.fedoraproject.org/mailman/listinfo/devel</a><br>
&gt; Fedora Code of Conduct: <a href="http://fedoraproject.org/code-of-conduct">http://fedoraproject.org/code-of-conduct</a></p>