<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>28647</bug_id>
          
          <creation_ts>2013-03-08 20:58:12 +0400</creation_ts>
          <short_desc>Не удаляются записи о старых ядрах в lilo.conf</short_desc>
          <delta_ts>2013-04-07 21:41:49 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch t6</product>
          <component>bootloader-utils</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roman Savochenko">rom_as</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>ldv</cc>
    
    <cc>led</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="QA t6">qa-t6</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>138487</commentid>
    <comment_count>0</comment_count>
    <who name="Roman Savochenko">rom_as</who>
    <bug_when>2013-03-08 20:58:12 +0400</bug_when>
    <thetext>В T6 переехал с grub2 на lilo и всёбы хорошо, но при удалении старых ядер записи о них вроде image=&quot;/boot/vmlinuz-3.0.65-std-def-alt0.M60P.1&quot; не удаляются из lilo.conf, что приводит к сообщениям ошибки LILO при обновлении загрузчика и невозможности вообще загрузиться если одновременно ставилось новое и удалялось старое ядро.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138488</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-03-08 21:00:32 +0400</bug_when>
    <thetext>Сам поправишь?  IIRC обсуждалось и вопрос перекликается с /usr/lib/rpm/boot_kernel.filetrigger</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138499</commentid>
    <comment_count>2</comment_count>
    <who name="Roman Savochenko">rom_as</who>
    <bug_when>2013-03-09 18:53:23 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Сам поправишь?  IIRC обсуждалось и вопрос перекликается с
Если-бы я сам мог быстро поправить то я и баги тут не создавал.
Собственно поглядел на /usr/share/loader/lilo, потом не понял откуда он вызывается и что возможно сверху не вызывается remove_kernel().

После этого подумал, чем я буду долго это искать и разворачивать вызовы лучше создам багу и причастные быстрее это исправят.

&gt; /usr/lib/rpm/boot_kernel.filetrigger
Похоже именно отсюда оно и вызывается, но ещё через какого-то посредника.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138666</commentid>
    <comment_count>3</comment_count>
    <who name="Roman Savochenko">rom_as</who>
    <bug_when>2013-03-13 23:15:27 +0400</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; Сам поправишь?  IIRC обсуждалось и вопрос перекликается с
&gt; /usr/lib/rpm/boot_kernel.filetrigger
Исправил:

--- boot_kernel.filetrigger_    2013-03-13 20:54:45.400836619 +0200
+++ boot_kernel.filetrigger     2013-03-13 20:49:30.782812824 +0200
@@ -63,6 +63,7 @@
                /sbin/installkernel &quot;$VERSION&quot;
        else
                # file does not exist -&gt; uninstall kernel
+               /sbin/installkernel -r &quot;$VERSION&quot;
                rm -f /boot/initrd-&quot;$VERSION&quot;.img

                # update default kernel if necessary</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138667</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-03-13 23:38:32 +0400</bug_when>
    <thetext>Прошу глянуть патч.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138668</commentid>
    <comment_count>5</comment_count>
    <who name="">led</who>
    <bug_when>2013-03-13 23:45:40 +0400</bug_when>
    <thetext>(В ответ на комментарий №4)
&gt; Прошу глянуть патч.

AFAIK
/sbin/installkernel -r &quot;$VERSION&quot;
уже предполагает
rm -f /boot/initrd-&quot;$VERSION&quot;.img</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>138669</commentid>
    <comment_count>6</comment_count>
    <who name="Roman Savochenko">rom_as</who>
    <bug_when>2013-03-14 00:12:36 +0400</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; (В ответ на комментарий №4)
&gt; &gt; Прошу глянуть патч.
&gt; 
&gt; AFAIK
&gt; /sbin/installkernel -r &quot;$VERSION&quot;
&gt; уже предполагает
&gt; rm -f /boot/initrd-&quot;$VERSION&quot;.img
Да, строку &quot;rm -f /boot/initrd-&quot;$VERSION&quot;.img&quot; можно убрать.
Проверил — удаляет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139387</commentid>
    <comment_count>7</comment_count>
    <who name="Roman Savochenko">rom_as</who>
    <bug_when>2013-04-07 18:09:42 +0400</bug_when>
    <thetext>Что дальше?
Мне это исправление добавить или как?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139388</commentid>
    <comment_count>8</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2013-04-07 18:35:56 +0400</bug_when>
    <thetext>bootloader-utils-0.4.21-alt1 -&gt; sisyphus:

* Sun Apr 07 2013 Dmitry V. Levin &lt;ldv@altlinux&gt; 0.4.21-alt1
- kernel.filetrigger: fixed handling of uninstalled kernels
  (by Roman Savochenko; closes: #28647).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>139391</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2013-04-07 21:41:49 +0400</bug_when>
    <thetext>Спасибо!  Осталось и в t6 :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>