[2/2] init-install-efi.sh: Remove unnecessary udev rules file to avoid errors

Submitted by Darren Hart on Sept. 23, 2013, 8:54 p.m. | Patch ID: 58621


Message ID 0e464e9ccc8460aa9734bc09915f57b80141e453.1379969542.git.dvhart@linux.intel.com
State New
Headers show

Commit Message

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:
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.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: mihaix.lindner@linux.intel.com
 .../initrdscripts/files/init-install-efi.sh        |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index 574966e..9846637 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -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*