All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Alexander Tsoy <alexander-EP/B3+myoZc@public.gmane.org>,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] udev-rules: add 80-net-setup-link.rules and .link files
Date: Wed, 05 Mar 2014 10:42:20 +0100	[thread overview]
Message-ID: <5316F17C.2080402@redhat.com> (raw)
In-Reply-To: <E1WKXL5-0000nX-FT-7GBPmfXo8GgjmsMGrRdz4w@public.gmane.org>

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.

      parent reply	other threads:[~2014-03-05  9:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5316F17C.2080402@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=alexander-EP/B3+myoZc@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.