init-install.sh: remove unnecessary udev rules file to avoid error messages
authorChen Qi <Qi.Chen@windriver.com>
Tue, 26 Mar 2013 06:08:19 +0000 (14:08 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Mar 2013 10:40:55 +0000 (10:40 +0000)
/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]

(From OE-Core rev: 6b6db7b4fb7aa17b8e29076decc830149b9d35bc)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install.sh

index 2c4486a..d2a0db3 100644 (file)
@@ -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*
 
 #