grml-udev-config.grml-forensic: also react to block device *changes*
[grml-udev-config.git] / debian / grml-udev-config.grml-forensic.udev
1 # mark new block devices as readonly when booting with bootoption forensic/readonly
2 ACTION=="add",    SUBSYSTEM=="block",                    RUN+="/etc/udev/scripts/forensic-mark-readonly $name"
3 # take care of devices when e.g. partition tables get re-read (see block/genhd.c + set_disk_ro() in linux source)
4 ACTION=="change", SUBSYSTEM=="block", ENV{DISK_RO}=="0", RUN+="/etc/udev/scripts/forensic-mark-readonly $name"