From 4beaed365266fc5927100c9634c603e039fcf7ed Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 31 Jul 2007 13:14:04 +0200 Subject: [PATCH] rules: add "do not edit" comment Default udev rules are not system configuration for users to edit, we need to be able to replace them with a package update. Custom rules have to go into their own files. --- etc/udev/rules.d/05-udev-early.rules | 2 ++ etc/udev/rules.d/60-persistent-input.rules | 2 ++ etc/udev/rules.d/60-persistent-storage.rules | 2 ++ etc/udev/rules.d/95-udev-late.rules | 2 ++ etc/udev/suse/50-udev-default.rules | 2 ++ etc/udev/suse/64-device-mapper.rules | 2 ++ etc/udev/suse/64-md-raid.rules | 2 +- etc/udev/suse/80-drivers.rules | 2 ++ 8 files changed, 15 insertions(+), 1 deletion(-) diff --git a/etc/udev/rules.d/05-udev-early.rules b/etc/udev/rules.d/05-udev-early.rules index ec94c358..4c3055b6 100644 --- a/etc/udev/rules.d/05-udev-early.rules +++ b/etc/udev/rules.d/05-udev-early.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + # sysfs is populated after the event is sent ACTION=="add", KERNEL=="[0-9]*:[0-9]*", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt" diff --git a/etc/udev/rules.d/60-persistent-input.rules b/etc/udev/rules.d/60-persistent-input.rules index acf5ebe7..fbebe862 100644 --- a/etc/udev/rules.d/60-persistent-input.rules +++ b/etc/udev/rules.d/60-persistent-input.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + ACTION!="add", GOTO="persistent_input_end" SUBSYSTEM!="input", GOTO="persistent_input_end" KERNEL=="input[0-9]*", GOTO="persistent_input_end" diff --git a/etc/udev/rules.d/60-persistent-storage.rules b/etc/udev/rules.d/60-persistent-storage.rules index a6f00693..a49321c5 100644 --- a/etc/udev/rules.d/60-persistent-storage.rules +++ b/etc/udev/rules.d/60-persistent-storage.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + # persistent storage links: /dev/{disk,tape}/{by-id,by-uuid,by-label,by-path,by-name} # scheme based on "Linux persistent device names", 2004, Hannes Reinecke diff --git a/etc/udev/rules.d/95-udev-late.rules b/etc/udev/rules.d/95-udev-late.rules index 6b79a246..1755d085 100644 --- a/etc/udev/rules.d/95-udev-late.rules +++ b/etc/udev/rules.d/95-udev-late.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + # event to be catched by udevmonitor RUN+="socket:/org/kernel/udev/monitor" diff --git a/etc/udev/suse/50-udev-default.rules b/etc/udev/suse/50-udev-default.rules index 1d57f0a8..4a3fe2c9 100644 --- a/etc/udev/suse/50-udev-default.rules +++ b/etc/udev/suse/50-udev-default.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + # console KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0666", OPTIONS="last_rule" KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0666", OPTIONS="last_rule" diff --git a/etc/udev/suse/64-device-mapper.rules b/etc/udev/suse/64-device-mapper.rules index e8af567e..c6142ea1 100644 --- a/etc/udev/suse/64-device-mapper.rules +++ b/etc/udev/suse/64-device-mapper.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + KERNEL=="device-mapper", SYMLINK+="mapper/control" KERNEL!="dm-*", GOTO="device_mapper_end" diff --git a/etc/udev/suse/64-md-raid.rules b/etc/udev/suse/64-md-raid.rules index 6bbfd126..02f27ee0 100644 --- a/etc/udev/suse/64-md-raid.rules +++ b/etc/udev/suse/64-md-raid.rules @@ -1,4 +1,4 @@ -# md links hook into "change" events, when the array becomes available +# do not edit this file, it will be overwritten on update SUBSYSTEM!="block", GOTO="md_end" KERNEL!="md[0-9]*", GOTO="md_end" diff --git a/etc/udev/suse/80-drivers.rules b/etc/udev/suse/80-drivers.rules index cf7157be..e7ae8dc1 100644 --- a/etc/udev/suse/80-drivers.rules +++ b/etc/udev/suse/80-drivers.rules @@ -1,3 +1,5 @@ +# do not edit this file, it will be overwritten on update + ACTION!="add", GOTO="drivers_end" DRIVER!="?*", ENV{MODALIAS}=="?*", RUN{ignore_error}+="/sbin/modprobe $env{MODALIAS}" -- 2.39.5