Disks: support large number of disks.

Fix: #4
See: https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/devices.txt
This commit is contained in:
Alexandre Pujol 2021-12-01 13:38:14 +00:00
parent ddc9fdef45
commit b52cbe564c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
11 changed files with 23 additions and 23 deletions

View file

@ -152,19 +152,19 @@ profile gpartedbin @{exec_path} {
/{usr/,}bin/mount mr,
mount /dev/{s,v}d[a-z][0-9]* -> /tmp/gparted-*/,
mount /dev/{s,v}d[a-z]*[0-9]* -> /tmp/gparted-*/,
mount /dev/{s,v}d[a-z][0-9]* -> /boot/,
mount /dev/{s,v}d[a-z][0-9]* -> @{MOUNTS}/*/,
mount /dev/{s,v}d[a-z][0-9]* -> @{MOUNTS}/*/*/,
mount /dev/{s,v}d[a-z]*[0-9]* -> /boot/,
mount /dev/{s,v}d[a-z]*[0-9]* -> @{MOUNTS}/*/,
mount /dev/{s,v}d[a-z]*[0-9]* -> @{MOUNTS}/*/*/,
@{sys}/devices/pci[0-9]*/**/block/{s,v}d[a-z]/ r,
@{sys}/devices/pci[0-9]*/**/block/{s,v}d[a-z]/dev r,
@{sys}/devices/pci[0-9]*/**/block/{s,v}d[a-z]/{s,v}d[a-z][0-9]*/ r,
@{sys}/devices/pci[0-9]*/**/block/{s,v}d[a-z]/{s,v}d[a-z][0-9]*/{start,size} r,
/dev/{s,v}d[a-z] r,
/dev/{s,v}d[a-z][0-9]* r,
/dev/{s,v}d[a-z]* r,
/dev/{s,v}d[a-z]*[0-9]* r,
}

View file

@ -27,7 +27,7 @@ profile hddtemp @{exec_path} {
@{exec_path} mr,
# Monitored hard drives
/dev/sd[a-z] r,
/dev/sd[a-z]* r,
# Database file that allows hddtemp to recognize supported drives
/etc/hddtemp.db r,