meta-digi/meta-digi-dey/recipes-connectivity
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
..
bluez bluez5: add patch to modify bluetooth.service's properties 2019-02-18 18:01:57 +01:00
cherokee rocko migration: update recipes 2018-01-12 15:59:15 +01:00
dhcp thud migration: dhcp: update recipe to version 4.4.1 2019-02-04 16:52:43 +01:00
hostapd hostapd: rework postinst script to avoid lock-ups on first boot 2019-02-18 18:01:57 +01:00
libmbim libmbim: fix runtime dependence 2017-07-10 19:41:53 +02:00
libqmi libqmi: add missing dependency 2018-01-12 15:59:19 +01:00
mbedtls meta-digi-dey: add mbedtls recipe 2017-05-11 19:10:10 +02:00
modemmanager modemmanager: create common blacklist rules file for ccimx8x platforms 2019-02-11 14:28:08 +01:00
networkmanager thud migration: networkmanager: update to use new version 1.14.4 2019-02-04 16:52:43 +01:00
openssl thud migration: refresh OpenSSL patches to version 1.1.x 2019-02-06 09:51:51 +01:00
packagegroups meta-digi: remove initscript package dependencies when systemd is enabled 2019-02-18 18:01:57 +01:00
ppp ppp: remove specific DNS scripts 2017-07-26 13:32:54 +02:00
vsftpd meta-digi: use recommended BP and BPN variables for FILESEXTRAPATHS 2015-03-13 18:43:12 +01:00
wpa-supplicant wpa_supplicant: add default configuration files for the ccimx8x 2018-06-26 18:33:54 +02:00