On Wed, Aug 28, 2019 at 04:04:48PM -0400, Greg Wooledge wrote:
> He apparently wants to make his operating system refuse to register
> persistent interface names, on the grounds that he frequently moves
> a physical hard drive from one system to another, and doesn't want to
> go through the hassle of reassigning the interface names each time.
> 
> If you know a way to do that other than the ways I suggested, go ahead
> and tell us.

This came up by surprise in IRC for a totally unrelated issue, but it
appears to be relevant to Gene's wish set:

In squeeze, wheezy, and jessie, and *possibly* stretch, the persistent
interface names that are stored in
/etc/udev/rules.d/70-persistent-net.rules are created by
/lib/udev/rules.d/75-persistent-net-generator.rules.

If for some reason one wishes to AVOID having udev's persistent interface
names in these older Debian releases (and is not using the "predictable"
net.ifnames thing in stretch), one may follow these steps:

  touch /etc/udev/rules.d/75-persistent-net-generator.rules
  rm /etc/udev/rules.d/70-persistent-net.rules

Apparently, creating an *empty* file named
/etc/udev/rules.d/75-persistent-net-generator.rules overrides the
instructions in /lib/udev/rules.d/75-persistent-net-generator.rules
and causes the generator not to run, when it would normally run.

This prevents the recreation of /etc/udev/rules.d/70-persistent-net.rules
which means your interfaces will not be saved across reboots.  You'll
go through the fun steps of having the system pull interfaces out of
a hat and name them, every single time.  Which seems to be what Gene
wants.

I have not tested this.  I am not going to.  If it doesn't work, too
bad.

Reply via email to