mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
udevil: ignore and dont mount/handle special partitions
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user