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 <[email protected]> --- 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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#138780): https://lists.openembedded.org/g/openembedded-core/message/138780 Mute This Topic: https://lists.openembedded.org/mt/74499756/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
