[OE-core] [PATCH 3/3] initscripts: disable mountall.sh for busybox init
Otavio Salvador
otavio.salvador at ossystems.com.br
Thu Nov 2 11:41:01 UTC 2017
On Thu, Nov 2, 2017 at 12:02 AM, wenzong fan <wenzong.fan at windriver.com> wrote:
>
>
> On 11/01/2017 08:51 PM, Otavio Salvador wrote:
>>
>> Hello,
>>
>> On Wed, Nov 1, 2017 at 4:04 AM, <wenzong.fan at windriver.com> wrote:
>>>
>>> From: Wenzong Fan <wenzong.fan at windriver.com>
>>>
>>> Disable 'mountall.sh' to avoid system halt while the init manager is
>>> set as 'busybox'.
>>>
>>> In busybox init, the 'SIGUSR1' was handled as 'halt', calling to the
>>> 'mountall.sh' would trigger the signal with:
>>> + kill -USR1 1
>>
>>
>> Wouldn't be better to add the signal handler for it?
>
>
> There's the handler in busybox-1.24.1/init/init.c:
>
> 788 /* The SIGPWR/SIGUSR[12]/SIGTERM handler */
> 789 static void halt_reboot_pwoff(int sig) NORETURN;
> 790 static void halt_reboot_pwoff(int sig)
> 791 {
> ...
> 803 run_shutdown_and_kill_processes();
> ...
> 817 }
>
> I think it was intended to halt the system.
Ok; but what mountall will offer to OE-Core then?
If we use systemd, it all another way to provide the same. So why not
dropping it?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the Openembedded-core
mailing list