Re: [OE-core] [PATCH 4/4] initscripts: Use initctl on sysvinit only

2020-12-18 Thread Khem Raj
On Fri, Dec 18, 2020 at 11:18 AM Sinan Kaya wrote: > > On 12/18/2020 1:46 PM, Khem Raj wrote: > > On Fri, Dec 18, 2020 at 10:29 AM Sinan Kaya > > wrote: > > > > On 12/17/2020 5:54 PM, Khem Raj wrote: > > > +if [ ! -p "$INITCTL" ] && [ "$(readlink -- "/sbin/init")"

Re: [OE-core] [PATCH 4/4] initscripts: Use initctl on sysvinit only

2020-12-18 Thread Sinan Kaya
On 12/18/2020 1:46 PM, Khem Raj wrote: > On Fri, Dec 18, 2020 at 10:29 AM Sinan Kaya > wrote: > > On 12/17/2020 5:54 PM, Khem Raj wrote: > > +if [ ! -p "$INITCTL" ] && [ "$(readlink -- "/sbin/init")" = > "/sbin/init.sysvinit" ]; then > > Can this be done

Re: [OE-core] [PATCH 4/4] initscripts: Use initctl on sysvinit only

2020-12-18 Thread Peter Kjellerstedt
> -Original Message- > From: openembedded-core@lists.openembedded.org c...@lists.openembedded.org> On Behalf Of Khem Raj > Sent: den 17 december 2020 23:55 > To: openembedded-core@lists.openembedded.org > Cc: Khem Raj > Subject: [OE-core] [PATCH 4/4] initscripts: Us

Re: [OE-core] [PATCH 4/4] initscripts: Use initctl on sysvinit only

2020-12-18 Thread Khem Raj
On Fri, Dec 18, 2020 at 10:29 AM Sinan Kaya wrote: > On 12/17/2020 5:54 PM, Khem Raj wrote: > > +if [ ! -p "$INITCTL" ] && [ "$(readlink -- "/sbin/init")" = > "/sbin/init.sysvinit" ]; then > > Can this be done at build time for targets using sysvinit only? > Yes however It will be lot more obscu

Re: [OE-core] [PATCH 4/4] initscripts: Use initctl on sysvinit only

2020-12-18 Thread Sinan Kaya
On 12/17/2020 5:54 PM, Khem Raj wrote: > +if [ ! -p "$INITCTL" ] && [ "$(readlink -- "/sbin/init")" = > "/sbin/init.sysvinit" ]; then Can this be done at build time for targets using sysvinit only? > +# Create new control channel > + rm -f "$INITCTL" > + mknod -m 600

[OE-core] [PATCH 4/4] initscripts: Use initctl on sysvinit only

2020-12-17 Thread Khem Raj
Check if init system is sysvinit to recreate initctl, this ensures that it can be used with busybox init system as well Signed-off-by: Khem Raj --- .../initscripts/initscripts-1.0/mountall.sh | 22 --- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/meta/recipes-