On 5/29/20 6:06 AM, Richard Purdie wrote:
On Wed, 2020-05-27 at 21:43 +0800, Hongxu Jia wrote:
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....@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
Somehow I think this patch is causing:

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/976

(the runqemu.RunqemuTests.test_boot_machine_iso and
runqemu.RunqemuTests.test_boot_deploy_hddimg failures)

Sorry for the inconvenient

//Hongxu

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#138874): 
https://lists.openembedded.org/g/openembedded-core/message/138874
Mute This Topic: https://lists.openembedded.org/mt/74499756/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to