All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] initramfs-framework/udev: remove mount.sh to avoid /run/media/XXX
@ 2020-05-27 13:43 hongxu
  2020-05-28 22:06 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: hongxu @ 2020-05-27 13:43 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

The udev invokes script hook mount.sh to mount /run/media/XXX. In
initramfs-framework, if udev was not killed in time, the partition
will be mounted to /run/media/XXX before switch_root.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-core/initrdscripts/initramfs-framework/udev | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/udev b/meta/recipes-core/initrdscripts/initramfs-framework/udev
index 8b62080c68..3c4dd0ec9b 100644
--- a/meta/recipes-core/initrdscripts/initramfs-framework/udev
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/udev
@@ -49,6 +49,9 @@ udev_run() {
 	# Workaround if console=null, systemd-udevd needs valid stdin, stdout and stderr to work
 	sh -c "exec 4< /dev/console" || { exec 0> /dev/null; exec 1> /dev/null; exec 2> /dev/null; }
 
+	# Avoid /run/media/XXX was mounted by udev
+	rm -f /etc/udev/scripts/mount.sh
+
 	$_UDEV_DAEMON --daemon
 	udevadm trigger --action=add
 	udevadm settle
-- 
2.18.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-29  1:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 13:43 [PATCH] initramfs-framework/udev: remove mount.sh to avoid /run/media/XXX hongxu
2020-05-28 22:06 ` Richard Purdie
2020-05-29  1:49   ` hongxu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.