Patchwork [1/1] init-install.sh: remove unnecessary udev rules file to avoid error messages

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date March 26, 2013, 6:08 a.m.
Message ID <9fef0b6956131f49f87c927619c9c0d0e6d189ce.1364266108.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/46893/
State Accepted
Commit 6b6db7b4fb7aa17b8e29076decc830149b9d35bc
Headers show

Comments

Qi.Chen@windriver.com - March 26, 2013, 6:08 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

/etc/udev/scripts/mount.sh is removed by init-install.sh, but the udev
rules file which specifies the invocation of this script is not removed,
thus causing the error message '/etc/udev/scripts/mount.sh: No such file
or directory' shown at a live install.

The /etc/udev/rules/automount.rules no longer works once the mount.sh script
is removed. So we remove it to avoid the error message.

[YOCTO #3924]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 .../initrdscripts/files/init-install.sh            |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 2c4486a..d2a0db3 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -57,6 +57,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*
 
 #