]> code.ossystems Code Review - openembedded-core.git/commitdiff
init-install-efi.sh: Remove unnecessary udev rules file to avoid errors
authorDarren Hart <dvhart@linux.intel.com>
Mon, 23 Sep 2013 20:54:10 +0000 (20:54 +0000)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 12 Mar 2014 19:00:34 +0000 (19:00 +0000)
Fixes [YOCTO #5233]

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

/etc/udev/scripts/mount.sh is removed by init-install-efi.sh, 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/mount.sh: No such file or directory

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

(From OE-Core master rev: 1f5a2b616d902b1158e348bf8c33b6d36e21cadc)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: mihaix.lindner@linux.intel.com
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install-efi.sh

index 9f7a9e7c61b5985cd0feb23e37f3e59c1bf36eb0..778ed56d7ad15504cdcd075e7b06c08cab434767 100644 (file)
@@ -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*
 
 #