Hello,
We have Beaglebone black based custom board,
Recently we upgraded busybox from version 1.20.2 to 1.26.2.
We are facing a issue where reboot(as mentioned below) from init scripts
doesn't seem to work.
In case of critical errors during initscript execution we used to reboot the
board. Now reboot doesn't seem to work however reboot -f works but that doesn't
run stop scripts to do cleanup.
reboot_and_hang()
{
reboot
while [ true ]
do
sleep 1
done
}
>From Stakeoverflow I got redirected to below patch/commit
https://git.busybox.net/busybox/commit/init/init.c?id=2bba9ad67a917de2624d427c8c107ce3e2d3d085
I got to know that reboots are not allowed during init.
However for our use case we need that.
I have some queries regarding that.
1. Patch says it is racy wrt syslog and libc function, so what kind of scenario
it will be racy , if you can point me to bug/documentation related to that. I
wanted to get more understanding about it.
2. Is there a better alternative to do reboot(with init, i.e. running stop
scripts not force reboot) during init ?
Thank you,
Regards,
Ankur
L&T Technology Services Ltd
www.LntTechservices.com<http://www.lnttechservices.com/>
This Email may contain confidential or privileged information for the intended
recipient (s). If you are not the intended recipient, please do not use or
disseminate the information, notify the sender and delete it from your system.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox