Skip to content

Commit

Permalink
Remove already ignored udev rules
Browse files Browse the repository at this point in the history
These rules are ignored since udev 148 (released on 2009-12-02), but it
was silent until systemd 243 (released on 2019-09-03).

Issue: Gandi#24
  • Loading branch information
Seb35 committed Aug 22, 2024
1 parent fe5824f commit 5889903
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions udev/gandi.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@
#

# complete automounting support for virtual disk
SUBSYSTEMS=="xen", DRIVERS=="vbd", SUBSYSTEM=="block", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.py", OPTIONS+="last_rule"
SUBSYSTEMS=="xen", DRIVERS=="vbd", SUBSYSTEM=="block", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.py"
# simple notification for virtual disk. no automounting
#SUBSYSTEMS=="xen", DRIVERS=="vbd", SUBSYSTEM=="block", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.sh"
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="gandi.ne", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.py", OPTIONS+="last_rule"
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="gandi.ne", RUN+="fake_blkid -o udev -p $tempnode", RUN+="/etc/gandi/manage_data_disk.py"

#
# setup network inteface attached to the local system
#
# The following two rules sometimes won't populate the INTERFACE variable.
SUBSYSTEMS=="xen", SUBSYSTEM=="net", KERNEL=="eth?", RUN+="/etc/gandi/manage_iface.sh", OPTIONS+="last_rule"
SUBSYSTEM=="net", KERNEL=="eth?", RUN+="/etc/gandi/manage_iface.sh", OPTIONS+="last_rule"
KERNELS=="xen", SUBSYSTEM=="xen", ATTR{devtype}=="vif", OPTIONS+="ignore_device"
SUBSYSTEMS=="xen", SUBSYSTEM=="net", KERNEL=="eth?", RUN+="/etc/gandi/manage_iface.sh"
SUBSYSTEM=="net", KERNEL=="eth?", RUN+="/etc/gandi/manage_iface.sh"


#
# enable CPU when attached to the local system as they are disabled by default
#
KERNELS=="cpu", ATTR{online}=="0", RUN+="cpu_online", OPTIONS+="last_rule"
KERNELS=="cpu", ATTR{online}=="0", RUN+="cpu_online"

# newer kernel and/or newer udev (>= 146)
# script cpu_online is using DEVPATH and is installed in /lib/udev
Expand All @@ -30,4 +29,4 @@ KERNEL=="cpu*", ACTION=="add", SUBSYSTEM=="cpu", RUN+="cpu_online"
#
# manage memory resources
#
SUBSYSTEM=="memory", RUN+="manage_memory", OPTIONS+="last_rule"
SUBSYSTEM=="memory", RUN+="manage_memory"

0 comments on commit 5889903

Please sign in to comment.