udevil: ignore and dont mount/handle special partitions

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-10-05 06:28:40 +02:00
parent 75e395c123
commit cb5480f13c

View File

@ -3,7 +3,11 @@ IMPORT{cmdline}="installer"
ENV{installer}=="1", GOTO="exit"
# check for blockdevices, /dev/sd* and /dev/sr*
SUBSYSTEM!="block", KERNEL!="sd*|sr*",GOTO="exit"
SUBSYSTEM!="block", KERNEL!="sd*|sr*", GOTO="exit"
# check for special partitions we dont want mount
IMPORT{builtin}="blkid"
ENV{ID_FS_LABEL}=="EFI|Recovery|System|SYSTEM|Storage|STORAGE|Flash|FLASH", GOTO="exit"
# /dev/sd* with partitions/disk and filesystems only and /dev/sr* disks only
KERNEL=="sd*", ENV{DEVTYPE}=="partition|disk", ENV{ID_FS_USAGE}=="filesystem", GOTO="harddisk"