summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-03-26 14:08:19 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-29 10:40:18 +0000
commit6b6db7b4fb7aa17b8e29076decc830149b9d35bc (patch)
tree7a29a169f4aea84a1be9e7c0ad10991e9ccdfda8
parentac904b9e10ec9641686bc35dcf200b9b855899b1 (diff)
downloadopenembedded-core-6b6db7b4fb7aa17b8e29076decc830149b9d35bc.tar.gz
openembedded-core-6b6db7b4fb7aa17b8e29076decc830149b9d35bc.tar.bz2
openembedded-core-6b6db7b4fb7aa17b8e29076decc830149b9d35bc.zip
init-install.sh: remove unnecessary udev rules file to avoid error messages
/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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 2c4486a149..d2a0db3183 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*
#