From 3e75c1ed347f6b41e75f7f015281655991c32388 Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz Date: Mon, 21 Jun 2021 09:37:47 +0200 Subject: [PATCH] recovery-initramfs: launch mdev as daemon 'mdev -s' run on ramfs initialization is able to mount external media already detected but fails to automatically mount any media detected afterwards. Running it as a daemon first it will also be able to mount any media detected after 'mdev -s' is run. Use argument '-d' to first run mdev as daemon in background. Move 2 seconds delay to after mdev has been initialized to give external hardware all the time possible to be successfully detected and mounted. https://onedigi.atlassian.net/browse/DEL-7285 Signed-off-by: Gonzalo Ruiz --- .../recovery/recovery-initramfs/recovery-initramfs-init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init b/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init index 61a02119d..e94758352 100644 --- a/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init +++ b/meta-digi-dey/recipes-core/recovery/recovery-initramfs/recovery-initramfs-init @@ -484,14 +484,15 @@ mount -t sysfs sysfs /sys mount -t devtmpfs devtmpfs /dev mount -t tmpfs tmpfs /tmp -# Give some time for the devices to settle down so mdev can mount all of them -sleep 2 - # Register mdev as device manager echo > /dev/mdev.seq echo > /dev/mdev.log +mdev -d mdev -s +# Give some time for the devices to settle down so mdev can mount all of them +sleep 2 + # Run all shell scripts in postinstall folder run-parts /etc/*-postinsts