All of lore.kernel.org
 help / color / mirror / Atom feed
From: wenzong fan <wenzong.fan@windriver.com>
To: Otavio Salvador <otavio.salvador@ossystems.com.br>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 3/3] initscripts: disable mountall.sh for busybox init
Date: Fri, 3 Nov 2017 10:51:22 +0800	[thread overview]
Message-ID: <2bf1bb33-fd02-5acc-52c3-74a8521e1d73@windriver.com> (raw)
In-Reply-To: <CAP9ODKr+aJJiBeRK95ubRWRWFs0u4mK1XmzPiLD=-xZj7qQ0NQ@mail.gmail.com>



On 11/02/2017 07:41 PM, Otavio Salvador wrote:
> On Thu, Nov 2, 2017 at 12:02 AM, wenzong fan <wenzong.fan@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@windriver.com> wrote:
>>>>
>>>> From: Wenzong Fan <wenzong.fan@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?
> 

We can drop it for systemd and busybox. Actually it has been limited to 
be used with sysvinit only from the packagegroup-core-boot.bb:

+ SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 
'${VIRTUAL-RUNTIME_base-utils-hwclock}', '', d)} \
+                    modutils-initscripts \
+                    init-ifupdown \
+                    ${VIRTUAL-RUNTIME_initscripts} \
                    "

+ RDEPENDS_${PN} = "\
+ ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", 
"${SYSVINIT_SCRIPTS}", "", d)} \
+ ...
+"

Please ignore my patches, they fix the issues for "busybox + 
initscrtipts" which won't be supported again.

Thanks
Wenzong


  reply	other threads:[~2017-11-03  2:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01  6:04 [PATCH 0/3] initscripts: fixes for booting with busybox init wenzong.fan
2017-11-01  6:04 ` [PATCH 1/3] initscripts: Check for the existence of /etc/default/rcS wenzong.fan
2017-11-01  6:04 ` [PATCH 2/3] initscripts: minor fixes to checkroot.sh wenzong.fan
2017-11-01  6:04 ` [PATCH 3/3] initscripts: disable mountall.sh for busybox init wenzong.fan
2017-11-01 12:51   ` Otavio Salvador
2017-11-02  2:02     ` wenzong fan
2017-11-02 11:41       ` Otavio Salvador
2017-11-03  2:51         ` wenzong fan [this message]
2017-11-02  2:24 ` [PATCH 0/3] initscripts: fixes for booting with " ChenQi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2bf1bb33-fd02-5acc-52c3-74a8521e1d73@windriver.com \
    --to=wenzong.fan@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=otavio.salvador@ossystems.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.