udevil: support mounting disks without partition tables

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-09-14 22:20:22 +02:00
parent bb57defc88
commit dbe33687bb

View File

@ -5,8 +5,8 @@ ENV{installer}=="1", GOTO="exit"
# check for blockdevices, /dev/sd* and /dev/sr*
SUBSYSTEM!="block", KERNEL!="sd*|sr*",GOTO="exit"
# /dev/sd* with partitions only and /dev/sr* disks only
KERNEL=="sd*", ENV{DEVTYPE}=="partition", GOTO="harddisk"
# /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"
KERNEL=="sr*", ENV{DEVTYPE}=="disk", GOTO="optical"
GOTO="exit"