All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] udev-rules: add 80-net-setup-link.rules and .link files
@ 2014-03-03 17:49 Alexander Tsoy
       [not found] ` <E1WKXL5-0000nX-FT-7GBPmfXo8GgjmsMGrRdz4w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Tsoy @ 2014-03-03 17:49 UTC (permalink / raw
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

With systemd >= 209 these file are required for predictable network interface
names
---
 modules.d/95udev-rules/module-setup.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
index 584d5c8..2d36712 100755
--- a/modules.d/95udev-rules/module-setup.sh
+++ b/modules.d/95udev-rules/module-setup.sh
@@ -32,7 +32,8 @@ install() {
         60-pcmcia.rules \
         50-udev.rules 95-late.rules \
         50-firmware.rules \
-        75-net-description.rules 80-net-name-slot.rules \
+        75-net-description.rules \
+        80-net-name-slot.rules 80-net-setup-link.rules \
         "$moddir/59-persistent-storage.rules" \
         "$moddir/61-persistent-storage.rules"
 
@@ -42,6 +43,13 @@ install() {
     # eudev rules
     inst_rules 80-drivers-modprobe.rules
 
+    for _i in \
+        ${systemdutildir}/network/*.link \
+        ${hostonly:+/etc/systemd/network/*.link} \
+        ; do
+        [[ -e "$_i" ]] && inst "$_i"
+    done
+
     {
         for i in cdrom tape dialout floppy; do
             if ! egrep -q "^$i:" "$initdir/etc/group" 2>/dev/null; then
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] udev-rules: add 80-net-setup-link.rules and .link files
       [not found] ` <E1WKXL5-0000nX-FT-7GBPmfXo8GgjmsMGrRdz4w@public.gmane.org>
@ 2014-03-05  9:42   ` Harald Hoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2014-03-05  9:42 UTC (permalink / raw
  To: Alexander Tsoy, initramfs-u79uwXL29TY76Z2rM5mHXA

On 03/03/2014 06:49 PM, Alexander Tsoy wrote:
> With systemd >= 209 these file are required for predictable network interface
> names
> ---
>  modules.d/95udev-rules/module-setup.sh | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
> index 584d5c8..2d36712 100755
> --- a/modules.d/95udev-rules/module-setup.sh
> +++ b/modules.d/95udev-rules/module-setup.sh
> @@ -32,7 +32,8 @@ install() {
>          60-pcmcia.rules \
>          50-udev.rules 95-late.rules \
>          50-firmware.rules \
> -        75-net-description.rules 80-net-name-slot.rules \
> +        75-net-description.rules \
> +        80-net-name-slot.rules 80-net-setup-link.rules \
>          "$moddir/59-persistent-storage.rules" \
>          "$moddir/61-persistent-storage.rules"
>  
> @@ -42,6 +43,13 @@ install() {
>      # eudev rules
>      inst_rules 80-drivers-modprobe.rules
>  
> +    for _i in \
> +        ${systemdutildir}/network/*.link \
> +        ${hostonly:+/etc/systemd/network/*.link} \
> +        ; do
> +        [[ -e "$_i" ]] && inst "$_i"
> +    done
> +
>      {
>          for i in cdrom tape dialout floppy; do
>              if ! egrep -q "^$i:" "$initdir/etc/group" 2>/dev/null; then
> 

Very nice, thanks! Pushed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-05  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 17:49 [PATCH] udev-rules: add 80-net-setup-link.rules and .link files Alexander Tsoy
     [not found] ` <E1WKXL5-0000nX-FT-7GBPmfXo8GgjmsMGrRdz4w@public.gmane.org>
2014-03-05  9:42   ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.