meta-digi/meta-digi-dey
Gabriel Valcazar b769f90e2a hostapd: rework postinst script to avoid lock-ups on first boot
The postinst script tries parsing the wireless MAC address from the sysfs, and
in case of failure, obtains a random string from /dev/urandom. This caused two
problems when booting with systemd:

 * The wifi interface's sysfs entry is not available because the interface
hasn't had time to start up yet, forcing the script to always resort to the
/dev/urandom fallback.
 * Even though the postinst scripts are run after populating the volatile
filesystems (as can be seen in run-postinsts.service's dependencies), trying
to read either /dev/random or /dev/urandom at this point in the system's
initialization causes it to lock up indefinitely.

To avoid either situation, add the following changes:

 * Immediately exit when running on a non-wireless target, as the script isn't
necessary in this use case.
 * Parse the wireless mac address from /proc/device-tree/wireless, which is
guaranteed to always be available when the script runs. By doing this, we can
remove the /dev/urandom fallback entirely.

https://jira.digi.com/browse/DEL-6415

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2019-02-18 18:01:57 +01:00
..
classes sumo migration: meta-digi: replace the deprecated base_conditional function 2019-01-11 13:26:44 +01:00
conf thud migration: default to use older Vulkan v1.0.65.2 2019-02-06 09:51:27 +01:00
recipes-aws sumo migration: use pkg_postinst_ontarget() to delayed operation on first boot 2019-01-16 11:31:00 +01:00
recipes-connectivity hostapd: rework postinst script to avoid lock-ups on first boot 2019-02-18 18:01:57 +01:00
recipes-core busybox: add suspend-actions script for the ccimx8x and ccimx6ul 2019-02-18 18:01:57 +01:00
recipes-devtools/tcf-agent tcf-agent: update to '1.5_oxygen' version 2017-11-22 18:30:07 +01:00
recipes-digi thud migration: remove compiler optimizations for CloudConnector recipe 2019-02-06 09:51:51 +01:00
recipes-graphics thud migration: default to use older Vulkan v1.0.65.2 2019-02-06 09:51:27 +01:00
recipes-multimedia thud migration: move forward gstreamer version 1.14 2019-02-06 08:50:48 +01:00
recipes-qt thud migration: move forward gstreamer version 1.14 2019-02-06 08:50:48 +01:00
recipes-sato packagegroup-core-x11-sato: remove matchbox dependencies 2018-08-14 13:11:25 +02:00
recipes-support thud migration: swupdate: update recipe to version 2018.11 2019-02-04 16:52:43 +01:00
DIGI_EULA DIGI_EULA: Update Digi EULA file. 2017-08-29 12:23:22 +02:00
DIGI_OPEN_EULA meta-digi: Rename from DEL to DEY. 2013-06-12 13:18:37 +02:00
README meta-digi: update support email address 2017-10-30 17:02:33 +01:00

README

OpenEmbedded/Yocto Digi Embedded Linux layer
============================================

This layer provides the Digi Embedded Linux distribution images.

This layer depends on:

git://git.yoctoproject.org/poky.git
git://git.openembedded.org/meta-openembedded.git
git://git.yoctoproject.org/meta-freescale.git
git://github.com/Freescale/meta-fsl-demos.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