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

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

    <bug>
          <bug_id>22299</bug_id>
          
          <creation_ts>2009-11-16 11:24:44 +0300</creation_ts>
          <short_desc>не отрабатывает случай не-eth*</short_desc>
          <delta_ts>2009-12-18 20:42:34 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>udev-rule-generator</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Sergey Y. Afonin">asy</assigned_to>
          <cc>asy</cc>
    
    <cc>shrek</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103182</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-11-16 11:24:44 +0300</bug_when>
    <thetext>home:~&gt; rpm -q udev-rule-generator
udev-rule-generator-141-alt11

home:~&gt; cat /etc/iftab
ext     mac 00:02:44:6b:77:0e
int     mac 00:0f:ea:60:a0:3a

home:~&gt; cat /etc/udev/rules.d/70-persistent-net.rules\~\~broken\~\~

# Firewire device )
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0f:ea:00:00:60:c6:e6&quot;, ATTR{type}==&quot;24&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth2&quot;

# Firewire device )
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;4d:5a:90:00:03:00:00:00&quot;, ATTR{type}==&quot;24&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot;
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x10de:0x0269 (forcedeth)
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0f:ea:60:a0:3a&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth0&quot;

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:02:44:6b:77:0e&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;eth1&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103186</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-11-16 11:47:08 +0300</bug_when>
    <thetext>В typescript от dist-upgrade пока никакого соответствующего stderr не нахожу.  Вернуть/убрать 70-persistent-net.rules и сделать руками
udevadm trigger --subsystem-match=net ?

Да, желаемый результат (был доправлен вручную, но вследствие использования только mac binding ожидалось нормальное автоконвертирование):

### firewire без разницы

# PCI device 0x10de:0x0269 (forcedeth)
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:0f:ea:60:a0:3a&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;int&quot;

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM==&quot;net&quot;, ACTION==&quot;add&quot;, DRIVERS==&quot;?*&quot;, ATTR{address}==&quot;00:02:44:6b:77:0e&quot;, ATTR{type}==&quot;1&quot;, KERNEL==&quot;eth*&quot;, NAME=&quot;ext&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103190</commentid>
    <comment_count>2</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2009-11-16 12:24:50 +0300</bug_when>
    <thetext>причем тут /etc/iftab? используй либо 70-persistent-net.rules, либо ifrename</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103191</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2009-11-16 12:34:11 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; причем тут /etc/iftab? используй либо 70-persistent-net.rules, либо ifrename
При установке пакета выполняется автоматическое преобразование iftab в 70-persistent-net.rules, но сейчас оно работает только для случая, когда в iftab интерфейсы переименовываются без смены базового имени (т.е., ethN -&gt; ethN с указанием только нового номера).

Тут проблема в том, что для правил в 70-persistent-net.rules, кроме всего прочего, нужна информация об изначальном имени интерфейса (для проверок вида KERNEL==&quot;eth*&quot;, необходимых для правильной обработки извращений типа wlan*+wmaster* с одинаковым адресом), а при установке пакета с уже переименованными интерфейсами эта информация уже потеряна.

Возможный вариант обхода (правда, опять в виде полной переделки того, что есть): выполнять преобразование не в момент установки пакета, а при первой перезагрузке после установки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104527</commentid>
    <comment_count>4</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2009-12-18 19:38:44 +0300</bug_when>
    <thetext>см. #3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104534</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2009-12-18 20:34:54 +0300</bug_when>
    <thetext>Валер, это называется не &quot;NOTABUG&quot;, а &quot;LATER&quot;.  Или &quot;WONTFIX&quot;.

Бага -- есть.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104535</commentid>
    <comment_count>6</comment_count>
    <who name="Valery Inozemtsev">shrek</who>
    <bug_when>2009-12-18 20:42:34 +0300</bug_when>
    <thetext>я так не считаю</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>