meta-digi/meta-digi-arm
Hector Palacios 359ade52ac udev-extraconf: mount.sh with skip of already-mounted partitions
Default poky's version of the 'mount.sh' script doesn't account
for the possibility of udev calling twice the script for the 'add'
action. This has been observed on USB sticks connected to a USB hub
and, although the script eventually fails, for already mounted
partitions, in that case the script tries to remove the created
mountpoint, when it shouldn't.

This patch checks for already mounted partitions earlier (before
creating the mount point) and returns with no actions.

The patch that it adds (with respect to poky's thud default) is
the following:

  diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
  index 3ee67b13183a..e6882a69c223 100644
  --- a/meta/recipes-core/udev/udev-extraconf/mount.sh
  +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
  @@ -38,6 +38,12 @@ done
   automount_systemd() {
       name="`basename "$DEVNAME"`"

  +    # Skip already mounted partitions
  +    if [ -f /run/systemd/transient/run-media-$name.mount ]; then
  +        logger "mount.sh/automount" "/run/media/$name already mounted"
  +        return
  +    fi
  +
       # Skip the partition which are already in /etc/fstab
       grep "^[[:space:]]*$DEVNAME" /etc/fstab && return
       for n in LABEL PARTLABEL UUID PARTUUID; do

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-6759
2019-09-18 09:13:41 +02:00
..
classes fsl-eula-unpack: sync with meta-fsl-bsp-release branch sumo-4.14.98-2.1.0 2019-09-02 09:43:15 +02:00
conf Merge branch 'dey-2.6/master' into dey-2.6/maint 2019-09-03 13:17:56 +02:00
custom-licenses recipes-digi: add cryptoauth-openssl-engine 2018-05-09 09:16:00 +02:00
recipes-bsp meta-digi: revert revisions to AUTOREV 2019-09-13 18:36:20 +02:00
recipes-core udev-extraconf: mount.sh with skip of already-mounted partitions 2019-09-18 09:13:41 +02:00
recipes-cpu/m4-demos imx-m4-demos: update to v2.5.2 2019-05-15 10:35:13 +02:00
recipes-devtools/imx-usb-loader imx-usb-loader: use the version that was used in older versions of DEY 2019-04-04 17:42:46 +02:00
recipes-digi meta-digi: revert revisions to AUTOREV 2019-09-13 18:36:20 +02:00
recipes-kernel meta-digi: revert revisions to AUTOREV 2019-09-13 18:36:20 +02:00
DIGI_EULA DIGI_EULA: Update Digi EULA file. 2017-08-29 12:23:22 +02:00
DIGI_OPEN_EULA meta-digi-arm: Add end user license agreements. 2012-10-26 16:20:14 +02:00
README meta-digi: update support email address 2017-10-30 17:02:33 +01:00

README

OpenEmbedded/Yocto BSP layer for Digi's ConnectCore platforms
=============================================================

This layer provides support for Digi's ConnnecCore platforms for use
with OpenEmbedded and/or Yocto.

This layer depends on:

git://git.yoctoproject.org/poky.git
git://git.openembedded.org/meta-openembedded.git
git://git.yoctoproject.org/meta-freescale.git

Digi's license agreements
-------------------------

All software is covered by Digi's general EULA and Digi's Open Source
EULA. To have the right to use the software in your images you need to
read and accept both EULAs at the DIGI_EULA and DIGI_OPEN_EULA files.

NXP Semiconductors' software license agreement
----------------------------------------------

Some platforms depends on libraries and packages that are covered by
NXP Semiconductors' EULA. To have the right to use those binaries in
your images you need to read and accept the EULA file in meta-freescale
Yocto layer.

Support
-------

This layer is provided 'as is' with no guarantee. However, some support
may be available from tech.support@digi.com