mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
mdev: do not complain if /sys/block doesn't exist
This commit is contained in:
parent
67b5eeb933
commit
f1df35c40b
@ -425,10 +425,11 @@ int mdev_main(int argc UNUSED_PARAM, char **argv)
|
||||
if (access("/sys/class/block", F_OK) != 0) {
|
||||
/* Scan obsolete /sys/block only if /sys/class/block
|
||||
* doesn't exist. Otherwise we'll have dupes.
|
||||
* Also, do not complain if it doesn't exist.
|
||||
* Some people configure kernel to have no blockdevs.
|
||||
*/
|
||||
recursive_action("/sys/block",
|
||||
ACTION_RECURSE | ACTION_FOLLOWLINKS,
|
||||
// not needed now? | ACTION_QUIET
|
||||
ACTION_RECURSE | ACTION_FOLLOWLINKS | ACTION_QUIET,
|
||||
fileAction, dirAction, temp, 0);
|
||||
}
|
||||
recursive_action("/sys/class",
|
||||
|
Loading…
Reference in New Issue
Block a user