aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-core/initrdscripts/files/0013-init-install-efi.sh-drop-all-automount-rules-whil.patch
blob: 4ce7548277812a62f0ad817f4e3844a26b3c530b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From ce5f89f08c7c929cd6d9e9b6ee065a83294e5388 Mon Sep 17 00:00:00 2001
From: Awais Belal <awais_belal@mentor.com>
Date: Thu, 8 Oct 2015 18:50:11 +0500
Subject: [PATCH] initramfs-live-install-efi: drop all automount rules while
 installing

Different auto mount rules reside under /etc/udev/rules.d and
can cause trouble while installing on devices like mmc as
these get auto mounted and the installer script fails
to format them.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 init-install-efi.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/init-install-efi.sh b/init-install-efi.sh
index 4759786..3597ab1 100644
--- init-install-efi.sh
+++ init-install-efi.sh
@@ -113,6 +113,7 @@ device=$TARGET_DEVICE_NAME
 #
 rm -f /etc/udev/rules.d/automount.rules
 rm -f /etc/udev/scripts/mount*
+rm -f /etc/udev/rules.d/*auto-mount.rules
 
 #
 # Unmount anything the automounter had mounted
-- 
1.9.1