mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
udevil: ignore and dont mount/handle special partitions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
75e395c123
commit
cb5480f13c
@ -5,6 +5,10 @@ ENV{installer}=="1", GOTO="exit"
|
|||||||
# check for blockdevices, /dev/sd* and /dev/sr*
|
# 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
|
# /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=="sd*", ENV{DEVTYPE}=="partition|disk", ENV{ID_FS_USAGE}=="filesystem", GOTO="harddisk"
|
||||||
KERNEL=="sr*", ENV{DEVTYPE}=="disk", GOTO="optical"
|
KERNEL=="sr*", ENV{DEVTYPE}=="disk", GOTO="optical"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user