From ca489ced1fbb7de4d815bb4e194f8b83bfc5c959 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 2 Sep 2013 23:36:39 -0400 Subject: [PATCH] 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. --- stage2/misc/udev/10-media-automount.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1