Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev rule to hide partitions does not work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
brain salad surgery
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 216

PostPosted: Sat Jun 01, 2013 4:06 pm    Post subject: udev rule to hide partitions does not work Reply with quote

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
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jun 01, 2013 4:40 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads. Please do not cross post.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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