brain salad surgery Apprentice
Joined: 21 Apr 2004 Posts: 216
|
Posted: Sat Jun 01, 2013 4:06 pm Post subject: udev rule to hide partitions does not work |
|
|
I don't understand what's wrong with this udev rule:
cat /etc/udev/rules.d/10-hide-partitions.rules
Code: |
ACTION!="add|change", GOTO="hide_partition_end"
SUBSYSTEM!="block", GOTO="hide_partition_end"
KERNEL=="loop*|ram*", GOTO="hide_partition_end"
KERNEL=="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda4",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda1",ENV{UDISKS_PRESENTATION_HIDE}="1"
LABEL="hide_partition_end" |
the partitions still appear under gnome.
The rule is read, as shown in this udev debug output:
Code: | udevadm --debug test /
custom logging function 0x7f6b8a048250 registered
selinux=0
main: runtime dir '/run/udev'
run_command: calling: test
adm_test: version 175
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
parse_file: reading '/etc/udev/rules.d/10-hide-partitions.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-crda.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-fuse.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-gnupg.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-hplip.rules' as rules file
|
kernel : 3.2.0-24-generic
udev --version gives 175 |
|