Patchwork [2/2] Remove unnecessary udev rules file to avoid errors

mail settings
Submitter Darren Hart
Date Sept. 23, 2013, 8:54 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/58621/
State New
Headers show


Darren Hart - Sept. 23, 2013, 8:54 p.m.
Fixes [YOCTO #5233]

Modeled after Chen Qi's fix to [YOCTO #3924] from oe-core commit:
6b6db7b4fb7aa17b8e29076decc830149b9d35bc remove unnecessary udev rules file to avoid error messages

/etc/udev/scripts/ is removed by, but the
udev rules file which specifies the invocation of this script is not
removed, thus causing the error message during a live install:

/etc/udev/scripts/ No such file or directory

The /etc/udev/rules/automount.rules no longer works once the
script is removed. Remove it to avoid the error message.

Signed-off-by: Darren Hart <>
 .../initrdscripts/files/        |    1 +
 1 file changed, 1 insertion(+)


diff --git a/meta/recipes-core/initrdscripts/files/ b/meta/recipes-core/initrdscripts/files/
index 574966e..9846637 100644
--- a/meta/recipes-core/initrdscripts/files/
+++ b/meta/recipes-core/initrdscripts/files/
@@ -58,6 +58,7 @@  echo "Installing image on /dev/${device}"
 # The udev automounter can cause pain here, kill it
+rm -f /etc/udev/rules.d/automount.rules
 rm -f /etc/udev/scripts/mount*