Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/lib/udev/rules.d/84-nm-drivers.rules:10 Invalid value ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
prehonor
n00b
n00b


Joined: 13 Nov 2019
Posts: 28

PostPosted: Wed Nov 13, 2019 4:12 pm    Post subject: /lib/udev/rules.d/84-nm-drivers.rules:10 Invalid value ... Reply with quote

Code:
Nov 13 23:22:37 Gentoo-ryx systemd[548]: systemd-udevd.service: Executing: /lib/systemd/systemd-udevd
Nov 13 23:22:37 Gentoo-ryx systemd-udevd[548]: /lib/udev/rules.d/11-dm-lvm.rules:40 Invalid value for OPTIONS key, ignoring: 'event_timeout=180'
Nov 13 23:22:37 Gentoo-ryx systemd-udevd[548]: /lib/udev/rules.d/11-dm-lvm.rules:40 The line takes no effect, ignoring.
Nov 13 23:22:37 Gentoo-ryx systemd-udevd[548]: /lib/udev/rules.d/84-nm-drivers.rules:10 Invalid value "/bin/sh -c 'ethtool -i $1 | sed -n s/^driver:\ //p' -- $env{INTERFACE}" for PROGRAM (char 24: invalid substitution type), ignoring,but please fix it.


how to fix the error "84-nm-drivers.rules:10 Invalid value ..."?

11-dm-lvm.rules :
Code:
# Copyright (C) 2009 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.

# Udev rules for LVM.
#
# These rules create symlinks for LVM logical volumes in
# /dev/VG directory (VG is an actual VG name). Some udev
# environment variables are set (they can be used in later
# rules as well):
#   DM_LV_NAME - logical volume name
#   DM_VG_NAME - volume group name
#   DM_LV_LAYER - logical volume layer (blank if not set)

# "add" event is processed on coldplug only!
ACTION!="add|change", GOTO="lvm_end"
ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="lvm_end"
ENV{DM_UUID}!="LVM-?*", GOTO="lvm_end"

# Use DM name and split it up into its VG/LV/layer constituents.
IMPORT{program}="/sbin/dmsetup splitname --nameprefixes --noheadings --rows $env{DM_NAME}"

# DM_SUBSYSTEM_UDEV_FLAG0 is the 'NOSCAN' flag for LVM subsystem.
# This flag is used to temporarily disable selected rules to prevent any
# processing or scanning done on the LVM volume before LVM has any chance
# to zero any stale metadata found within the LV data area. Such stale
# metadata could cause false claim of the LV device, keeping it open etc.
#
# If the NOSCAN flag is present, backup selected existing flags used to
# disable rules, then set them firmly so those selected rules are surely skipped.
# Restore these flags once the NOSCAN flag is dropped (which is normally any
# uevent that follows for this LV, even an artificially generated one).
ENV{DM_SUBSYSTEM_UDEV_FLAG0}=="1", ENV{DM_NOSCAN}="1", ENV{DM_DISABLE_OTHER_RULES_FLAG_OLD}="$env{DM_UDEV_DISABLE_OTHER_RULES_FLAG}", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"
ENV{DM_SUBSYSTEM_UDEV_FLAG0}!="1", IMPORT{db}="DM_NOSCAN", IMPORT{db}="DM_DISABLE_OTHER_RULES_FLAG_OLD"
ENV{DM_SUBSYSTEM_UDEV_FLAG0}!="1", ENV{DM_NOSCAN}=="1", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="$env{DM_DISABLE_OTHER_RULES_FLAG_OLD}", \
               ENV{DM_DISABLE_OTHER_RULES_FLAG_OLD}="", ENV{DM_NOSCAN}=""

ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}=="1", GOTO="lvm_end"

OPTIONS+="event_timeout=180"

# Do not create symlinks for inappropriate subdevices.
ENV{DM_LV_NAME}=="pvmove?*|?*_vorigin", GOTO="lvm_disable"
ENV{DM_LV_LAYER}=="?*", GOTO="lvm_disable"

# Create symlinks for top-level devices only.
ENV{DM_VG_NAME}=="?*", ENV{DM_LV_NAME}=="?*", SYMLINK+="$env{DM_VG_NAME}/$env{DM_LV_NAME}", GOTO="lvm_end"

LABEL="lvm_disable"
ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1"
ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1"
OPTIONS:="nowatch"

LABEL="lvm_end"


84-nm-drivers.rules :
Code:

# Do not modify this file, it will get overwritten on updates.
# To override or extend the rules place a file in /etc/udev/rules.d

SUBSYSTEM!="net", GOTO="nm_drivers_end"
ACTION!="add|change", GOTO="nm_drivers_end"

# Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?)
ENV{ID_NET_DRIVER}=="?*", GOTO="nm_drivers_end"
DRIVERS=="?*", GOTO="nm_drivers_end"
PROGRAM="/bin/sh -c 'ethtool -i $1 | sed -n s/^driver:\ //p' -- $env{INTERFACE}", RESULT=="?*", ENV{ID_NET_DRIVER}="%c"

LABEL="nm_drivers_end"


[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by prehonor on Thu Nov 14, 2019 2:22 am; edited 1 time in total
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 897
Location: Italy

PostPosted: Wed Nov 13, 2019 10:27 pm    Post subject: Reply with quote

Please post the contents of those files: /lib/udev/rules.d/11-dm-lvm.rules and /lib/udev/rules.d/84-nm-drivers.rules.
Back to top
View user's profile Send private message
prehonor
n00b
n00b


Joined: 13 Nov 2019
Posts: 28

PostPosted: Thu Nov 14, 2019 2:26 am    Post subject: ok Reply with quote

fturco wrote:
Please post the contents of those files: /lib/udev/rules.d/11-dm-lvm.rules and /lib/udev/rules.d/84-nm-drivers.rules.

I 've added the contents of thoses files.
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 897
Location: Italy

PostPosted: Thu Nov 14, 2019 4:41 pm    Post subject: Reply with quote

/lib/udev/rules.d/11-dm-lvm.rules

See https://sourceware.org/git/?p=lvm2.git;a=commit;h=125f27ac37bc9b93cc96f64052b9681b3d479ee1

You may try commenting out the following line:
Code:
OPTIONS+="event_timeout=180"

Or you can try updating to sys-fs/lvm2-2.03.06 or greater.

/lib/udev/rules.d/84-nm-drivers.rules

See:

You may try updating to net-misc/networkmanager-1.18.4-r1 or greater.
Back to top
View user's profile Send private message
prehonor
n00b
n00b


Joined: 13 Nov 2019
Posts: 28

PostPosted: Sun Nov 17, 2019 4:24 pm    Post subject: Reply with quote

fturco wrote:
/lib/udev/rules.d/11-dm-lvm.rules

See https://sourceware.org/git/?p=lvm2.git;a=commit;h=125f27ac37bc9b93cc96f64052b9681b3d479ee1

You may try commenting out the following line:
Code:
OPTIONS+="event_timeout=180"

Or you can try updating to sys-fs/lvm2-2.03.06 or greater.

/lib/udev/rules.d/84-nm-drivers.rules

See:

You may try updating to net-misc/networkmanager-1.18.4-r1 or greater.


I'll try it if I have time, thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum