[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] init: add option to select a default init script
From:       David Demelier <markand () malikania ! fr>
Date:       2019-08-23 8:20:40
Message-ID: f8b5d508-ce51-a73a-fdf0-90faa6195b63 () malikania ! fr
[Download RAW message or body]

Le 13/08/2019 à 11:03, Bernhard Reutner-Fischer a écrit  :
> On 10 August 2019 14:38:42 CEST, David Demelier <markand@malikania.fr> wrote:
>> On Fri, 2019-07-05 at 14:25 +0200, David Demelier wrote:
>>> ---
>>>   init/init.c | 10 +++++++++-
>>>   1 file changed, 9 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/init/init.c b/init/init.c
>>> index 0f3c5fa4d..a875caf84 100644
>>> --- a/init/init.c
>>> +++ b/init/init.c
>>> @@ -15,6 +15,14 @@
>>>   //config:	help
>>>   //config:	init is the first program run when the system boots.
>>>   //config:
>>> +//config:config INIT_SCRIPT
>>> +//config:	string "Default init script to start"
>>> +//config:	default "/etc/init.d/rcS"
>>> +//config:	depends on INIT
>>> +//config:	help
>>> +//config:	Default init script to start.
>>> +//config:	Defaults to "/etc/init.d/rcS"
>>> +//config:
>>>   //config:config LINUXRC
>>>   //config:	bool "linuxrc: support running init from initrd (not
>>> initramfs)"
>>>   //config:	default y
>>> @@ -160,7 +168,7 @@
>>>   
>>>   /* Default sysinit script. */
>>>   #ifndef INIT_SCRIPT
>>> -# define INIT_SCRIPT  "/etc/init.d/rcS"
>>> +# define INIT_SCRIPT  CONFIG_INIT_SCRIPT
>>>   #endif
>>>   
>>>   /* Each type of actions can appear many times. They will be
>>
>> Anyone is interested?
> 
> Well just -DINIT_SCRIPT to your liking instead.
> 
> thanks,
> 

TBH, this is a tunable that should be available as an option. Init 
script is not standardized accross Linux distributions not based on 
systemd. Having to specify a compile flag to change it instead of a 
simple convenient option is a bit harsh.

Thanks anyway for the response.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic