From: Hugo Villeneuve Date: Tue, 3 Sep 2013 03:36:39 +0000 (-0400) Subject: Fix udev warning 'ressize 1024 too short' with SD card X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=ca489ced1fbb7de4d815bb4e194f8b83bfc5c959;p=hvlinux.git Fix udev warning 'ressize 1024 too short' with SD card The rule 10-media-automount has the line: KERNEL!="sd[b-z]*", GOTO="my_media_automount_end" but the asterisk matches "zero or more time", so the rule was matching on "sd", which seems plausible for a sd card. This means that "/sbin/blkid " with no arguments was called, and this generated around 1400 bytes of output, more than the 1024 bytes allocated by udev, and resulting in the warning message. By modifying the rule to: KERNEL!="sd[b-z][0-9]*", GOTO="my_media_automount_end" we ensure to NOT match on "sd" alone. --- diff --git a/stage2/misc/udev/10-media-automount.rules b/stage2/misc/udev/10-media-automount.rules index 18c365f..af79563 100644 --- a/stage2/misc/udev/10-media-automount.rules +++ b/stage2/misc/udev/10-media-automount.rules @@ -1,5 +1,5 @@ # start at sdb to ignore the system hard drive -KERNEL!="sd[b-z]*", GOTO="my_media_automount_end" +KERNEL!="sd[b-z][0-9]*", GOTO="my_media_automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" # import some useful filesystem info as variables