Consistent device naming

Bruno Wolff III bruno at wolff.to
Wed May 14 01:53:47 UTC 2014


On Tue, May 13, 2014 at 17:59:54 -0700,
  CLOSE Dave <Dave.Close at us.thalesgroup.com> wrote:
>
>I've done that. The problem seems to be that what I want to do is to
>/exchange/ the names assigned. One of the renames works but the other
>fails, claiming the new name is already in use. In other circumstances,
>I'd use an intermediate name, orig->temp->target, but I don't know how
>to do that with udev, or even if it is possible.

To exchange names, you need to use a temporary name and do three renames. 
Pretty much like swapping to values using a temporary variable.

Another thing to consider is do you really need to reference the interface 
names? If you use dhcp and NetworkManager, you might be able to avoid that.


More information about the users mailing list