svn commit: [26073] trunk/busybox/util-linux

vda at busybox.net vda at busybox.net
Sun Apr 12 14:00:13 UTC 2009


Author: vda
Date: 2009-04-12 14:00:12 +0000 (Sun, 12 Apr 2009)
New Revision: 26073

Log:
mdev: do not complain if /sys/block doesn't exist



Modified:
   trunk/busybox/util-linux/mdev.c


Changeset:
Modified: trunk/busybox/util-linux/mdev.c
===================================================================
--- trunk/busybox/util-linux/mdev.c	2009-04-12 13:54:13 UTC (rev 26072)
+++ trunk/busybox/util-linux/mdev.c	2009-04-12 14:00:12 UTC (rev 26073)
@@ -425,10 +425,11 @@
 		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",



More information about the busybox-cvs mailing list