From 72b56d0f59f321519f25b039937a24b0ce338295 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Fri, 18 Mar 2016 20:35:36 -0400 Subject: add this, its getting moved, but i wanted some of the content stored --- udev/79-cloud-init-net-setup-link.rules | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 udev/79-cloud-init-net-setup-link.rules diff --git a/udev/79-cloud-init-net-setup-link.rules b/udev/79-cloud-init-net-setup-link.rules new file mode 100644 index 00000000..03dba382 --- /dev/null +++ b/udev/79-cloud-init-net-setup-link.rules @@ -0,0 +1,18 @@ +# cloud-init rules to apply + +SUBSYSTEM!="net", GOTO="cloudinit_naming_end" + +IMPORT{builtin}="path_id" + +ACTION!="add", GOTO="cloudinit_naming_end" + +# net_setup_link provides us with systemd names for reference +IMPORT{builtin}="net_setup_link" +ATTR{address}!="", ENV{MAC_ADDRESS}="$attr{address}" +IMPORT{program}="/lib/udev/cloud-init-name-device" + +ENV{CLOUDINIT_NET_NAME}!="", NAME="$env{CLOUDINIT_NET_NAME}" + +LABEL="cloudinit_naming_end" + +# vi: ts=4 expandtab syntax=udevrules -- cgit v1.2.3