changes in halt.c

Jon Nalley lists at bluebot.org
Fri Oct 31 18:19:37 UTC 2008


All,

After upgrading to 1.12.1 I noticed that the 'reboot' command no
longer worked for me (nothing happened when running reboot).  I should
note that I am *not* using 'init' from busybox.  I looked at the diff
of halt.c between 1.11.3 and 1.12.1 and noticed the following change
that breaks in my use case:

-        if (ENABLE_INIT && !(flags & 4)) {
+        rc = 1;
+        if (!(flags & 4)) { /* no -f */

Note that since the check for "ENABLE_INIT" has been removed the code
seems to always assume that init is busybox's init.

After adding "ENABLE_INIT" back into the if() things work as expected.

Regards,

Jon Nalley



More information about the busybox mailing list