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> |
||
|---|---|---|
| .. | ||
| classes | ||
| conf | ||
| recipes-aws | ||
| recipes-connectivity | ||
| recipes-core | ||
| recipes-devtools/tcf-agent | ||
| recipes-digi | ||
| recipes-graphics | ||
| recipes-multimedia | ||
| recipes-qt | ||
| recipes-sato | ||
| recipes-support | ||
| DIGI_EULA | ||
| DIGI_OPEN_EULA | ||
| README | ||
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