On Sat, 05 Apr 2014 10:16:10 -0400 (EDT), Brian Potkin wrote:
> 
> The following was done on an install from d-i's Jessie Alpha 1 release.
> Only the base system was installed, so no DE.
> 
> 1. Observed that 70-persistent-net.rules was created by 'Detect network
>    hardware' and was present on first boot of the new system.
> 
> 2. Adding a USB wireless adapter resulted in an entry being appended to
>    70-persistent-net.rules.
> 
> 3. Deleted the file. 'udevadm trigger --action=add' re-created it with
>    all interfaces present.
> 
> 4. Deleted the file again and rebooted.
> 
> 5. 70-persistent-net.rules did not exist but the udevadm command creates
>    it.
> 
> 6. Rebooted with 'net.ifnames=1' after deleting 70-persistent-net.rules.
> 
> 7. Data is not added when the USB adapter is inserted, the udevadmn
>    command has ceased to work and 70-persistent-net.rules is not
>    present.

Thanks for your research, Brian.  None of the above surprises me, based
on what I've learned so far.  The problem is, at boot time, the
/etc/udev/rules.d directory, which is part of the root file system, is
not writable.  Either the permanent root file file system is not mounted
yet (the initial RAM file system is still mounted), or the permanent
root file system is mounted, but it is still mounted read only at the time
the boot code needs to create or update it.  The two scenarios that have
been discussed so far are (1) the file does not get created at boot time
if it is missing, and (2) a new entry for a new NIC that is discovered
at boot time is not appended to the file.  Both of these scenarios involve
writing to /etc/udev/rules.d/70-persistent-net.rules before the file
is writable.

In the past, the init scripts contained a work-around for this problem
by re-directing output to a temporary file.  Originally, this file was
called /dev/.udev/tmp-rules--70-persistent-net.rules.  In later releases,
the name of the temporary file was changed to
/run/udev/tmp-rules--70-persistent-net.rules.  Once the permanent root
file system was mounted read/write, the temporary file was appended to
/etc/udev/rules.d/70-persistent-net.rules.  This logic is either absent
or incomplete in jessie.  Try this.

   cd /etc
   grep -r tmp-rules .

Compare the output on a wheezy system and a jessie system.  I suspect that
this is at least part of the problem.

-- 
  .''`.     Stephen Powell    
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to